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

Method Run

command/build.go:36–46  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

34}
35
36func (c *BuildCommand) Run(args []string) int {
37 ctx, cleanup := handleTermInterrupt(c.Ui)
38 defer cleanup()
39
40 cfg, ret := c.ParseArgs(args)
41 if ret != 0 {
42 return ret
43 }
44
45 return c.RunContext(ctx, cfg)
46}
47
48func (c *BuildCommand) ParseArgs(args []string) (*BuildArgs, int) {
49 var cfg BuildArgs

Calls 4

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