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

Function NewProfileCmd

pkg/cmd/profile/application.go:15–30  ·  view source on GitHub ↗

NewProfileCmd returns a new command for managing profiles.

(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

13
14// NewProfileCmd returns a new command for managing profiles.
15func NewProfileCmd(f *cmdutil.Factory) *cobra.Command {
16 cmd := &cobra.Command{
17 Use: "profile",
18 Aliases: []string{"profiles"},
19 Short: "Manage your Algolia CLI profiles",
20 }
21
22 auth.DisableAuthCheck(cmd)
23
24 cmd.AddCommand(add.NewAddCmd(f, nil))
25 cmd.AddCommand(list.NewListCmd(f, nil))
26 cmd.AddCommand(remove.NewRemoveCmd(f, nil))
27 cmd.AddCommand(setdefault.NewSetDefaultCmd(f, nil))
28
29 return cmd
30}

Callers 1

NewRootCmdFunction · 0.92

Calls 5

DisableAuthCheckFunction · 0.92
NewAddCmdFunction · 0.92
NewListCmdFunction · 0.92
NewRemoveCmdFunction · 0.92
NewSetDefaultCmdFunction · 0.92

Tested by

no test coverage detected