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

Function NewObjectsCmd

pkg/cmd/objects/objects.go:15–29  ·  view source on GitHub ↗

NewObjectsCmd returns a new command for indices objects.

(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

13
14// NewObjectsCmd returns a new command for indices objects.
15func NewObjectsCmd(f *cmdutil.Factory) *cobra.Command {
16 cmd := &cobra.Command{
17 Use: "objects",
18 Short: "Add, update, and delete records",
19 Aliases: []string{"records"},
20 }
21
22 cmd.AddCommand(browse.NewBrowseCmd(f))
23 cmd.AddCommand(importObjects.NewImportCmd(f))
24 cmd.AddCommand(delete.NewDeleteCmd(f, nil))
25 cmd.AddCommand(updateObjects.NewUpdateCmd(f, nil))
26 cmd.AddCommand(operations.NewOperationsCmd(f, nil))
27
28 return cmd
29}

Callers 1

NewRootCmdFunction · 0.92

Calls 3

NewBrowseCmdFunction · 0.92
NewDeleteCmdFunction · 0.92
NewOperationsCmdFunction · 0.92

Tested by

no test coverage detected