NewCmd creates the new "report" command
()
| 27 | |
| 28 | // NewCmd creates the new "report" command |
| 29 | func NewCmd() *cobra.Command { |
| 30 | reportCmd := &cobra.Command{ |
| 31 | Use: "report operator/cluster", |
| 32 | Short: "Report on the operator or a cluster for troubleshooting", |
| 33 | GroupID: plugin.GroupIDTroubleshooting, |
| 34 | } |
| 35 | |
| 36 | reportCmd.AddCommand(operatorCmd()) |
| 37 | reportCmd.AddCommand(clusterCmd()) |
| 38 | |
| 39 | return reportCmd |
| 40 | } |
no test coverage detected