| 210 | } |
| 211 | |
| 212 | func (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` |
| 220 | type HCL2UpgradeArgs struct { |