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

Function NewRulesCmd

pkg/cmd/rules/rules.go:13–25  ·  view source on GitHub ↗

NewRulesCmd returns a new command for rules.

(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

11
12// NewRulesCmd returns a new command for rules.
13func NewRulesCmd(f *cmdutil.Factory) *cobra.Command {
14 cmd := &cobra.Command{
15 Use: "rules",
16 Aliases: []string{"rule"},
17 Short: "Manage your Algolia rules",
18 }
19
20 cmd.AddCommand(importRules.NewImportCmd(f, nil))
21 cmd.AddCommand(browse.NewBrowseCmd(f))
22 cmd.AddCommand(delete.NewDeleteCmd(f, nil))
23
24 return cmd
25}

Callers 1

NewRootCmdFunction · 0.92

Calls 2

NewBrowseCmdFunction · 0.92
NewDeleteCmdFunction · 0.92

Tested by

no test coverage detected