()
| 27 | ) |
| 28 | |
| 29 | func RegisterServerCommand() *cobra.Command { |
| 30 | Server := &cobra.Command{ |
| 31 | Use: "server", |
| 32 | Short: "server operation commands", |
| 33 | Run: func(cmd *cobra.Command, args []string) { |
| 34 | fmt.Println("please run with 'controller | ingester'.") |
| 35 | }, |
| 36 | } |
| 37 | |
| 38 | Server.AddCommand(controllerSubCommand()) |
| 39 | Server.AddCommand(ingesterSubCommand()) |
| 40 | return Server |
| 41 | } |
| 42 | |
| 43 | func controllerSubCommand() *cobra.Command { |
| 44 | controller := &cobra.Command{ |
no test coverage detected