(ctx context.Context, cla *ConsoleArgs)
| 59 | } |
| 60 | |
| 61 | func (c *ConsoleCommand) RunContext(ctx context.Context, cla *ConsoleArgs) int { |
| 62 | packerStarter, ret := c.GetConfig(&cla.MetaArgs) |
| 63 | if ret != 0 { |
| 64 | return ret |
| 65 | } |
| 66 | |
| 67 | _ = packerStarter.Initialize(packer.InitializeOptions{ |
| 68 | UseSequential: cla.UseSequential, |
| 69 | }) |
| 70 | |
| 71 | // Determine if stdin is a pipe. If so, we evaluate directly. |
| 72 | if c.StdinPiped() { |
| 73 | return c.modePiped(packerStarter) |
| 74 | } |
| 75 | |
| 76 | return c.modeInteractive(packerStarter) |
| 77 | } |
| 78 | |
| 79 | func (*ConsoleCommand) Help() string { |
| 80 | helpText := ` |
no test coverage detected