(cmd *cobra.Command, name string)
| 244 | } |
| 245 | |
| 246 | func findCommand(cmd *cobra.Command, name string) *cobra.Command { |
| 247 | for _, c := range cmd.Commands() { |
| 248 | if c.Name() == name { |
| 249 | return c |
| 250 | } |
| 251 | } |
| 252 | return nil |
| 253 | } |
| 254 | |
| 255 | type CommandGroup struct { |
| 256 | Title string |