MCPcopy
hub / github.com/hashicorp/packer / RunContext

Method RunContext

command/inspect.go:45–59  ·  view source on GitHub ↗
(ctx context.Context, cla *InspectArgs)

Source from the content-addressed store, hash-verified

43}
44
45func (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
61func (*InspectCommand) Help() string {
62 helpText := `

Callers 1

RunMethod · 0.95

Calls 3

GetConfigMethod · 0.80
InitializeMethod · 0.65
InspectConfigMethod · 0.65

Tested by

no test coverage detected