(action CommandExecFunc)
| 49 | } |
| 50 | |
| 51 | func (c *CommandDefinition) WithAction(action CommandExecFunc) *CommandDefinition { |
| 52 | c.Action = action |
| 53 | return c |
| 54 | } |
| 55 | |
| 56 | func NewCommand(name string, summary string, description string) *CommandDefinition { |
| 57 | return &CommandDefinition{ |
no outgoing calls
no test coverage detected