(args []string)
| 31 | } |
| 32 | |
| 33 | func (c *ConsoleCommand) Run(args []string) int { |
| 34 | ctx := context.Background() |
| 35 | |
| 36 | cfg, ret := c.ParseArgs(args) |
| 37 | if ret != 0 { |
| 38 | return ret |
| 39 | } |
| 40 | |
| 41 | return c.RunContext(ctx, cfg) |
| 42 | } |
| 43 | |
| 44 | func (c *ConsoleCommand) ParseArgs(args []string) (*ConsoleArgs, int) { |
| 45 | var cfg ConsoleArgs |
nothing calls this directly
no test coverage detected