Groups returns a slice of child command groups.
()
| 1369 | |
| 1370 | // Groups returns a slice of child command groups. |
| 1371 | func (c *Command) Groups() []*Group { |
| 1372 | return c.commandgroups |
| 1373 | } |
| 1374 | |
| 1375 | // AllChildCommandsHaveGroup returns if all subcommands are assigned to a group |
| 1376 | func (c *Command) AllChildCommandsHaveGroup() bool { |