NewApplicationCmd returns a new command for managing applications.
(f *cmdutil.Factory)
| 15 | |
| 16 | // NewApplicationCmd returns a new command for managing applications. |
| 17 | func NewApplicationCmd(f *cmdutil.Factory) *cobra.Command { |
| 18 | cmd := &cobra.Command{ |
| 19 | Use: "application", |
| 20 | Aliases: []string{"app"}, |
| 21 | Short: "Manage your Algolia applications", |
| 22 | } |
| 23 | |
| 24 | cmd.AddCommand(create.NewCreateCmd(f)) |
| 25 | cmd.AddCommand(list.NewListCmd(f)) |
| 26 | cmd.AddCommand(selectapp.NewSelectCmd(f)) |
| 27 | cmd.AddCommand(update.NewUpdateCmd(f)) |
| 28 | cmd.AddCommand(plans.NewPlansCmd(f)) |
| 29 | cmd.AddCommand(upgrade.NewUpgradeCmd(f)) |
| 30 | cmd.AddCommand(downgrade.NewDowngradeCmd(f)) |
| 31 | |
| 32 | return cmd |
| 33 | } |
no test coverage detected