MCPcopy Create free account
hub / github.com/GetStream/stream-cli / NewRootCmd

Function NewRootCmd

pkg/cmd/importcmd/root.go:10–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func NewRootCmd() *cobra.Command {
11 cmd := &cobra.Command{
12 Use: "import",
13 Short: "Import data into your Stream applications",
14 }
15
16 chatCmd := &cobra.Command{
17 Use: "chat",
18 Short: "Import data into Chat",
19 }
20 chatCmd.AddCommand(chatImports.NewCmds()...)
21
22 feedsCmd := &cobra.Command{
23 Use: "feeds",
24 Short: "Import data into Feeds",
25 }
26 feedsCmd.AddCommand(feedsImports.NewCmds()...)
27
28 cmd.AddCommand(chatCmd, feedsCmd)
29
30 return cmd
31}

Callers 1

NewCmdFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected