NewAPIKeysCmd returns a new command for API Keys.
(f *cmdutil.Factory)
| 12 | |
| 13 | // NewAPIKeysCmd returns a new command for API Keys. |
| 14 | func NewAPIKeysCmd(f *cmdutil.Factory) *cobra.Command { |
| 15 | cmd := &cobra.Command{ |
| 16 | Use: "apikeys", |
| 17 | Aliases: []string{"api-key", "api-keys", "apikey"}, |
| 18 | Short: "Manage your Algolia API keys", |
| 19 | } |
| 20 | |
| 21 | cmd.AddCommand(list.NewListCmd(f, nil)) |
| 22 | cmd.AddCommand(create.NewCreateCmd(f, nil)) |
| 23 | cmd.AddCommand(delete.NewDeleteCmd(f, nil)) |
| 24 | cmd.AddCommand(get.NewGetCmd(f, nil)) |
| 25 | |
| 26 | return cmd |
| 27 | } |
no test coverage detected