(cmd *cobra.Command, name string)
| 229 | } |
| 230 | |
| 231 | func findCommand(cmd *cobra.Command, name string) *cobra.Command { |
| 232 | for _, c := range cmd.Commands() { |
| 233 | if c.Name() == name { |
| 234 | return c |
| 235 | } |
| 236 | } |
| 237 | return nil |
| 238 | } |
| 239 | |
| 240 | type CommandGroup struct { |
| 241 | Title string |