NewAliasCommand creates and returns the cobra command for managing server aliases.
()
| 7 | |
| 8 | // NewAliasCommand creates and returns the cobra command for managing server aliases. |
| 9 | func NewAliasCommand() *cobra.Command { |
| 10 | cmd := &cobra.Command{ |
| 11 | Use: "alias <subCommand> [flags]", |
| 12 | Short: "Set, unset, and list aliases, aliases can be used to log in to servers", |
| 13 | Long: "Set, unset, and list aliases, aliases can be used to log in to servers", |
| 14 | } |
| 15 | cmd.AddCommand(NewAliasListCommand()) |
| 16 | cmd.AddCommand(NewAliasSetCommand()) |
| 17 | cmd.AddCommand(NewAliasUnsetCommand()) |
| 18 | return cmd |
| 19 | } |