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

Method Run

command/console.go:33–42  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

31}
32
33func (c *ConsoleCommand) Run(args []string) int {
34 ctx := context.Background()
35
36 cfg, ret := c.ParseArgs(args)
37 if ret != 0 {
38 return ret
39 }
40
41 return c.RunContext(ctx, cfg)
42}
43
44func (c *ConsoleCommand) ParseArgs(args []string) (*ConsoleArgs, int) {
45 var cfg ConsoleArgs

Callers

nothing calls this directly

Calls 2

ParseArgsMethod · 0.95
RunContextMethod · 0.95

Tested by

no test coverage detected