(command, description string, fn HandlerFunc, opts stdcli.CommandOptions)
| 11 | } |
| 12 | |
| 13 | func (e *Engine) Command(command, description string, fn HandlerFunc, opts stdcli.CommandOptions) { |
| 14 | wfn := func(c *stdcli.Context) error { |
| 15 | return fn(e.currentClient(c), c) |
| 16 | } |
| 17 | |
| 18 | e.Engine.Command(command, description, wfn, opts) |
| 19 | } |
| 20 | |
| 21 | func (e *Engine) CommandWithoutProvider(command, description string, fn HandlerFunc, opts stdcli.CommandOptions) { |
| 22 | wfn := func(c *stdcli.Context) error { |