MCPcopy Create free account
hub / github.com/algolia/cli / NewApplicationCmd

Function NewApplicationCmd

pkg/cmd/application/application.go:17–33  ·  view source on GitHub ↗

NewApplicationCmd returns a new command for managing applications.

(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

15
16// NewApplicationCmd returns a new command for managing applications.
17func 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}

Callers 1

NewRootCmdFunction · 0.92

Calls 7

NewCreateCmdFunction · 0.92
NewListCmdFunction · 0.92
NewSelectCmdFunction · 0.92
NewUpdateCmdFunction · 0.92
NewPlansCmdFunction · 0.92
NewUpgradeCmdFunction · 0.92
NewDowngradeCmdFunction · 0.92

Tested by

no test coverage detected