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

Method Run

command/plugins_required.go:43–53  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

41}
42
43func (c *PluginsRequiredCommand) Run(args []string) int {
44 ctx, cleanup := handleTermInterrupt(c.Ui)
45 defer cleanup()
46
47 cfg, ret := c.ParseArgs(args)
48 if ret != 0 {
49 return ret
50 }
51
52 return c.RunContext(ctx, cfg)
53}
54
55func (c *PluginsRequiredCommand) ParseArgs(args []string) (*PluginsRequiredArgs, int) {
56 var cfg PluginsRequiredArgs

Callers

nothing calls this directly

Calls 4

ParseArgsMethod · 0.95
RunContextMethod · 0.95
handleTermInterruptFunction · 0.85
cleanupFunction · 0.85

Tested by

no test coverage detected