NewCreateCommand creates and returns the cobra command for creating configuration entries.
()
| 7 | |
| 8 | // NewCreateCommand creates and returns the cobra command for creating configuration entries. |
| 9 | func NewCreateCommand() *cobra.Command { |
| 10 | cmd := &cobra.Command{ |
| 11 | Use: "create [command]", |
| 12 | Short: "Create alternative username, port number, password, and login cache information", |
| 13 | Long: "Create alternative username, port number, password, and login cache information", |
| 14 | Aliases: []string{"cre", "crt", "add"}, |
| 15 | } |
| 16 | cmd.AddCommand(NewUsersCommand()) |
| 17 | cmd.AddCommand(NewPortsCommand()) |
| 18 | cmd.AddCommand(NewPasswordsCommand()) |
| 19 | cmd.AddCommand(NewCachesCommand()) |
| 20 | cmd.AddCommand(NewKeysCommand()) |
| 21 | return cmd |
| 22 | } |