(args []string)
| 18 | } |
| 19 | |
| 20 | func (c *ValidateCommand) Run(args []string) int { |
| 21 | ctx, cleanup := handleTermInterrupt(c.Ui) |
| 22 | defer cleanup() |
| 23 | |
| 24 | cfg, ret := c.ParseArgs(args) |
| 25 | if ret != 0 { |
| 26 | return ret |
| 27 | } |
| 28 | |
| 29 | return c.RunContext(ctx, cfg) |
| 30 | } |
| 31 | |
| 32 | func (c *ValidateCommand) ParseArgs(args []string) (*ValidateArgs, int) { |
| 33 | var cfg ValidateArgs |