This commit is contained in:
sylviamoss 2021-02-12 15:31:13 +01:00
parent 76e3d57cae
commit 855ba9775a
2 changed files with 2 additions and 1 deletions

View File

@ -145,7 +145,7 @@ type InspectArgs struct {
func (va *HCL2UpgradeArgs) AddFlagSets(flags *flag.FlagSet) { func (va *HCL2UpgradeArgs) AddFlagSets(flags *flag.FlagSet) {
flags.StringVar(&va.OutputFile, "output-file", "", "File where to put the hcl2 generated config. Defaults to JSON_TEMPLATE.pkr.hcl") flags.StringVar(&va.OutputFile, "output-file", "", "File where to put the hcl2 generated config. Defaults to JSON_TEMPLATE.pkr.hcl")
flags.BoolVar(&va.WithAnnotations, "with-annotations", false, "Add to the generated file helper annotations about the generated HCL2 blocks.") flags.BoolVar(&va.WithAnnotations, "with-annotations", false, "Adds helper annotations with information about the generated HCL2 blocks.")
va.MetaArgs.AddFlagSets(flags) va.MetaArgs.AddFlagSets(flags)
} }

View File

@ -78,3 +78,4 @@ working on improving this part of the transformer.
- `-output-file` - File where to put the hcl2 generated config. Defaults to - `-output-file` - File where to put the hcl2 generated config. Defaults to
JSON_TEMPLATE.pkr.hcl JSON_TEMPLATE.pkr.hcl
- `-with-annotations` - Adds helper annotations with information about the generated HCL2 blocks.