()
| 8 | ) |
| 9 | |
| 10 | func 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 | } |