(args []string)
| 17 | } |
| 18 | |
| 19 | func (c *FormatCommand) Run(args []string) int { |
| 20 | ctx := context.Background() |
| 21 | cfg, ret := c.ParseArgs(args) |
| 22 | if ret != 0 { |
| 23 | return ret |
| 24 | } |
| 25 | |
| 26 | return c.RunContext(ctx, cfg) |
| 27 | } |
| 28 | |
| 29 | func (c *FormatCommand) ParseArgs(args []string) (*FormatArgs, int) { |
| 30 | var cfg FormatArgs |