(subcommands []*CommandDefinition)
| 34 | } |
| 35 | |
| 36 | func (c *CommandDefinition) WithSubcommands(subcommands []*CommandDefinition) *CommandDefinition { |
| 37 | c.Subcommands = subcommands |
| 38 | return c |
| 39 | } |
| 40 | |
| 41 | func (c *CommandDefinition) WithHidden(hidden bool) *CommandDefinition { |
| 42 | c.Hidden = hidden |
no outgoing calls
no test coverage detected