Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #150 from danmx/fix_usage_ssh
Browse files Browse the repository at this point in the history
fix(cmd): clarify ssh usage
  • Loading branch information
danmx authored Aug 27, 2020
2 parents 5a6edfe + 0966b27 commit 8adf284
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

### Fix
- **aws:** error log on a send ssh pub key failure
- **cmd:** clarify ssh usage
- **docs:** adding profile config entry description


Expand Down
2 changes: 1 addition & 1 deletion cmd/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const tempKeyName = "temp_key"
var (
portNum uint64 = 22
sshCmd = &cobra.Command{
Use: "ssh [--type TYPE] ... { [--gen-key-pair] [--gen-key-dir DIR] | [--pub-key PUB_KEY_PATH] } TARGET",
Use: "ssh [--type TYPE] ... [ { --gen-key-pair [--gen-key-dir DIR] | --pub-key PUB_KEY_PATH } ] TARGET",
DisableFlagsInUseLine: true,
Short: "Start ssh session",
Long: `Start a new ssh for chosen EC2 instance.`,
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/20-ssh.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Start a new ssh for chosen EC2 instance based on its instance ID, name tag, or private DNS name.

```console
sigil ssh [--type TYPE] ... { [--gen-key-pair] [--gen-key-dir DIR] | [--pub-key PUB_KEY_PATH] } TARGET
ssh [--type TYPE] ... [ { --gen-key-pair [--gen-key-dir DIR] | --pub-key PUB_KEY_PATH } ] TARGET
```

[Man](../man/sigil_ssh.md) page
Expand Down

0 comments on commit 8adf284

Please sign in to comment.