()
| 27 | } |
| 28 | |
| 29 | func (e *Engine) RegisterCommands() { |
| 30 | for _, c := range commands { |
| 31 | if c.Rack { |
| 32 | e.Command(c.Command, c.Description, c.Handler, c.Opts) |
| 33 | } else { |
| 34 | e.CommandWithoutProvider(c.Command, c.Description, c.Handler, c.Opts) |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | func (e *Engine) currentClient(c *stdcli.Context) sdk.Interface { |
| 40 | if e.Client != nil { |
no test coverage detected