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

Method Run

command/fmt.go:19–27  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

17}
18
19func (c *FormatCommand) Run(args []string) int {
20 ctx := context.Background()
21 cfg, ret := c.ParseArgs(args)
22 if ret != 0 {
23 return ret
24 }
25
26 return c.RunContext(ctx, cfg)
27}
28
29func (c *FormatCommand) ParseArgs(args []string) (*FormatArgs, int) {
30 var cfg FormatArgs

Callers 4

TestFmtFunction · 0.95
TestFmt_RecursiveFunction · 0.95

Calls 2

ParseArgsMethod · 0.95
RunContextMethod · 0.95

Tested by 4

TestFmtFunction · 0.76
TestFmt_RecursiveFunction · 0.76