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

Method Run

command/validate.go:20–30  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

18}
19
20func (c *ValidateCommand) Run(args []string) int {
21 ctx, cleanup := handleTermInterrupt(c.Ui)
22 defer cleanup()
23
24 cfg, ret := c.ParseArgs(args)
25 if ret != 0 {
26 return ret
27 }
28
29 return c.RunContext(ctx, cfg)
30}
31
32func (c *ValidateCommand) ParseArgs(args []string) (*ValidateArgs, int) {
33 var cfg ValidateArgs

Calls 4

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