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