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

Method Runnable

command.go:1596–1598  ·  view source on GitHub ↗

Runnable determines if the command is itself runnable.

()

Source from the content-addressed store, hash-verified

1594
1595// Runnable determines if the command is itself runnable.
1596func (c *Command) Runnable() bool {
1597 return c.Run != nil || c.RunE != nil
1598}
1599
1600// HasSubCommands determines if the command has children commands.
1601func (c *Command) HasSubCommands() bool {

Callers 8

executeMethod · 0.95
IsAvailableCommandMethod · 0.95
defaultUsageFuncFunction · 0.80
defaultHelpFuncFunction · 0.80
GenYamlCustomFunction · 0.80
GenReSTCustomFunction · 0.80
GenMarkdownCustomFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected