MCPcopy
hub / github.com/spf13/cobra / Groups

Method Groups

command.go:1371–1373  ·  view source on GitHub ↗

Groups returns a slice of child command groups.

()

Source from the content-addressed store, hash-verified

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

Callers 1

defaultUsageFuncFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected