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

Function NewRootCmd

pkg/cmd/chat/root.go:19–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17)
18
19func NewRootCmd() *cobra.Command {
20 cmd := &cobra.Command{
21 Use: "chat",
22 Short: "Allows you to interact with your Chat applications",
23 }
24
25 cmd.AddCommand(app.NewCmds()...)
26 cmd.AddCommand(channel.NewCmds()...)
27 cmd.AddCommand(channeltype.NewCmds()...)
28 cmd.AddCommand(device.NewCmds()...)
29 cmd.AddCommand(events.NewCmds()...)
30 cmd.AddCommand(file.NewCmds()...)
31 cmd.AddCommand(message.NewCmds()...)
32 cmd.AddCommand(user.NewCmds()...)
33 cmd.AddCommand(push.NewCmds()...)
34 cmd.AddCommand(reaction.NewCmds()...)
35 cmd.AddCommand(watch.NewCmds()...)
36
37 return cmd
38}

Callers 1

NewCmdFunction · 0.92

Calls 11

NewCmdsFunction · 0.92
NewCmdsFunction · 0.92
NewCmdsFunction · 0.92
NewCmdsFunction · 0.92
NewCmdsFunction · 0.92
NewCmdsFunction · 0.92
NewCmdsFunction · 0.92
NewCmdsFunction · 0.92
NewCmdsFunction · 0.92
NewCmdsFunction · 0.92
NewCmdsFunction · 0.92

Tested by

no test coverage detected