Skip to content

Commit

Permalink
Short aliases for ssh
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed May 1, 2024
1 parent 00b44c0 commit f33937e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ func makeSSH() *cobra.Command {
Short: "List and connect to SSH sessions",
Long: `List and connect to SSH sessions to explore the environment
or debug a problem with a build.`,
Aliases: []string{"s"},
SilenceErrors: true,
SilenceUsage: true,
}
Expand Down
1 change: 1 addition & 0 deletions cmd/ssh_connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func makeSshConnect() *cobra.Command {
# Connect to a specific session
actuated-cli ssh connect HOST
`,
Aliases: []string{"c"},
}

cmd.RunE = runSshConnectE
Expand Down
2 changes: 1 addition & 1 deletion cmd/ssh_ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const SshGw = "https://sshgw.actuated.dev"
func makeSshList() *cobra.Command {
cmd := &cobra.Command{
Use: "list",
Aliases: []string{"ls"},
Aliases: []string{"ls", "l"},
Short: "List SSH sessions",
}

Expand Down

0 comments on commit f33937e

Please sign in to comment.