packer-cn/hcl2template
Wilken Rivera 4e58987026
command/fmt: Ensure all variable files ending in `.pkrvars.hcl` get formatted (#10377)
Before change
```
⇶  packer fmt -check /tmp/unformatted.pkrvars.hcl
Error: Cannot tell whether /tmp/unformatted.pkrvars.hcl contains HCL2 configuration data

⇶  echo $?
1
```

After fix
```
⇶  packer fmt -check /tmp/unformatted.pkrvars.hcl
/tmp/unformatted.pkrvars.hcl

⇶  echo $?
3

⇶  packer fmt -check command/test-fixtures/fmt
command/test-fixtures/fmt/unformatted.pkr.hcl
command/test-fixtures/fmt/unformatted.auto.pkrvars.hcl
command/test-fixtures/fmt/unformatted.pkrvars.hcl

```
2020-12-14 10:29:58 -05:00
..
addrs Referenceable: explain a bit more of the whys 2020-11-04 13:21:41 +01:00
function update tests and website and generated partials to reflect new package format 2020-11-17 10:36:01 -08:00
internal move postprocessor to sdk, fix generation code 2020-12-01 14:48:55 -08:00
repl
shim
testdata command/fmt: Ensure all variable files ending in `.pkrvars.hcl` get formatted (#10377) 2020-12-14 10:29:58 -05:00
common_test.go move plugin and rpc code into sdk; other minor tweaks (#10359) 2020-12-09 12:39:54 +01:00
decode.go
docs.go
formatter.go Add packer fmt command (#10225) 2020-11-11 11:49:39 -05:00
formatter_test.go command/fmt: Ensure all variable files ending in `.pkrvars.hcl` get formatted (#10377) 2020-12-14 10:29:58 -05:00
functions.go Fix 2nd binding of string reverse for list reverse (#10380) 2020-12-14 10:57:08 +01:00
parser.go command/fmt: Ensure all variable files ending in `.pkrvars.hcl` get formatted (#10377) 2020-12-14 10:29:58 -05:00
types.build.from.go
types.build.go
types.build.post-processor.go move postprocessor to sdk, fix generation code 2020-12-01 14:48:55 -08:00
types.build.provisioners.go move provisioner interface into sdk 2020-12-01 14:25:14 -08:00
types.build_test.go move plugin and rpc code into sdk; other minor tweaks (#10359) 2020-12-09 12:39:54 +01:00
types.hcl_post-processor.go move postprocessor to sdk, fix generation code 2020-12-01 14:48:55 -08:00
types.hcl_provisioner.go move provisioner interface into sdk 2020-12-01 14:25:14 -08:00
types.hcl_ref.go
types.packer_config.go move plugin and rpc code into sdk; other minor tweaks (#10359) 2020-12-09 12:39:54 +01:00
types.packer_config_test.go move plugin and rpc code into sdk; other minor tweaks (#10359) 2020-12-09 12:39:54 +01:00
types.source.go extract builder interface to sdk 2020-12-01 13:42:42 -08:00
types.source_test.go move plugin and rpc code into sdk; other minor tweaks (#10359) 2020-12-09 12:39:54 +01:00
types.variables.go HCL2: allow calling env as input var default value (#10240) 2020-11-11 11:27:32 +01:00
types.variables_test.go command/fmt: Ensure all variable files ending in `.pkrvars.hcl` get formatted (#10377) 2020-12-14 10:29:58 -05:00
utils.go
version.go HCL2: add a packer block with a required_version input setting (#10149) 2020-10-27 10:03:36 +01:00
version_required.go refactor packer version out of hcltemplate code. 2020-11-09 12:29:53 -08:00