(ctx context.Context, cla *InspectArgs)
| 43 | } |
| 44 | |
| 45 | func (c *InspectCommand) RunContext(ctx context.Context, cla *InspectArgs) int { |
| 46 | packerStarter, ret := c.GetConfig(&cla.MetaArgs) |
| 47 | if ret != 0 { |
| 48 | return ret |
| 49 | } |
| 50 | |
| 51 | // here we ignore init diags to allow unknown variables to be used |
| 52 | _ = packerStarter.Initialize(packer.InitializeOptions{ |
| 53 | UseSequential: cla.UseSequential, |
| 54 | }) |
| 55 | |
| 56 | return packerStarter.InspectConfig(packer.InspectConfigOptions{ |
| 57 | Ui: c.Ui, |
| 58 | }) |
| 59 | } |
| 60 | |
| 61 | func (*InspectCommand) Help() string { |
| 62 | helpText := ` |
no test coverage detected