packer-cn/command
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
..
enumflag move the various flag packages from helper to command, since command is the only package that uses them. 2020-11-16 14:23:35 -08:00
flag-kv move the various flag packages from helper to command, since command is the only package that uses them. 2020-11-16 14:23:35 -08:00
flag-slice move the various flag packages from helper to command, since command is the only package that uses them. 2020-11-16 14:23:35 -08:00
test-fixtures command/fmt: Ensure all variable files ending in `.pkrvars.hcl` get formatted (#10377) 2020-12-14 10:29:58 -05:00
build.go move plugin and rpc code into sdk; other minor tweaks (#10359) 2020-12-09 12:39:54 +01:00
build_cancellation_test.go fix tests 2020-05-08 17:46:33 +02:00
build_cleanup_script_test.go fix tests 2020-05-08 17:46:33 +02:00
build_parallel_test.go move packer config constants next to the packer config 2020-12-03 10:17:35 -08:00
build_test.go move packer config constants next to the packer config 2020-12-03 10:17:35 -08:00
build_timeout_test.go move packer config constants next to the packer config 2020-12-03 10:17:35 -08:00
build_windows_test.go Update build_windows_test.go 2020-07-07 12:00:36 +02:00
cli.go move the various flag packages from helper to command, since command is the only package that uses them. 2020-11-16 14:23:35 -08:00
command_test.go fix tests by moving mock hooks and communicators, and BasicUi definition, into SDK 2020-11-30 14:30:30 -08:00
configtype_enumer.go packer console for HCL2 (#9359) 2020-06-05 17:23:54 +02:00
console.go docs tweaks 2020-10-14 12:58:04 -07:00
console_test.go console: allow to use console when there are untyped vars (#9864) 2020-09-02 17:19:56 +02:00
core_wrapper.go refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
exec_test.go move packer config constants next to the packer config 2020-12-03 10:17:35 -08:00
fix.go create packer-plugin-sdk directory and begin moving the relevant folders into it. 2020-11-13 10:47:36 -08:00
fix_test.go fix tests by moving mock hooks and communicators, and BasicUi definition, into SDK 2020-11-30 14:30:30 -08:00
fmt.go command/fmt: Ensure all variable files ending in `.pkrvars.hcl` get formatted (#10377) 2020-12-14 10:29:58 -05:00
fmt_test.go command/fmt: Ensure all variable files ending in `.pkrvars.hcl` get formatted (#10377) 2020-12-14 10:29:58 -05:00
hcl2_upgrade.go move plugin and rpc code into sdk; other minor tweaks (#10359) 2020-12-09 12:39:54 +01:00
hcl2_upgrade_test.go JSON to HCL2 (minimal best-effort) transpiler (#9659) 2020-08-25 10:51:43 +02:00
inspect.go inspect command: ignore init errors as some value can be unset 2020-09-01 11:59:07 +02:00
inspect_test.go HCL2: allow calling env as input var default value (#10240) 2020-11-11 11:27:32 +01:00
meta.go move Ui definition into the packer plugin sdk. 2020-11-30 14:26:54 -08:00
plugin.go move plugin and rpc code into sdk; other minor tweaks (#10359) 2020-12-09 12:39:54 +01:00
signal.go move Ui definition into the packer plugin sdk. 2020-11-30 14:26:54 -08:00
utils.go build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
validate.go docs tweaks 2020-10-14 12:58:04 -07:00
validate_test.go HCL2: version block: test validation & document version/availability (#10298) 2020-11-23 10:27:26 -05:00
version.go packer.io prefix removal, html extension remove for in-code errors 2020-04-07 17:53:22 -04:00
version_test.go command: version tests 2014-10-27 20:58:44 -07:00