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

Method AddFlagSets

command/cli.go:212–217  ·  view source on GitHub ↗
(flags *flag.FlagSet)

Source from the content-addressed store, hash-verified

210}
211
212func (va *HCL2UpgradeArgs) AddFlagSets(flags *flag.FlagSet) {
213 flags.StringVar(&va.OutputFile, "output-file", "", "File where to put the hcl2 generated config. Defaults to JSON_TEMPLATE.pkr.hcl")
214 flags.BoolVar(&va.WithAnnotations, "with-annotations", false, "Adds helper annotations with information about the generated HCL2 blocks.")
215
216 va.MetaArgs.AddFlagSets(flags)
217}
218
219// HCL2UpgradeArgs represents a parsed cli line for a `packer hcl2_upgrade`
220type HCL2UpgradeArgs struct {

Callers 1

ParseArgsMethod · 0.95

Calls 1

AddFlagSetsMethod · 0.45

Tested by

no test coverage detected