NewProfileCmd returns a new command for managing profiles.
(f *cmdutil.Factory)
| 13 | |
| 14 | // NewProfileCmd returns a new command for managing profiles. |
| 15 | func 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 | } |
no test coverage detected