packer-cn/website/pages
Wilken Rivera acabc1c1aa
Add packer fmt command (#10225)
* Add packer fmt command

This change adds a new command that allows users to format one or more
HCL2 Packer configuration template files.

Related to: #9174

* command/fmt: Add check flag

Packer's fmt command now supports a check flag that will output the name
of any file that would be changed by the HCL2 formatting engine. The
check flag is mutually exclusive with the write flag and will only check
if formatting is needed.

The update write flag will now overwrite the source files with the newly
formatted HCL2 source unless the `-write=false` or `-check` is passed at
the command line.

* Returns a diagnostic error if Format is unable to show a diff - equivalent to `terraform fmt`
* Updates testing to run against #Format and not the private methods of the HCL2Formatter; fixes ShowDiff test failure on Windows
* Updates comments for exported functions

* Add docs for fmt command
2020-11-11 11:49:39 -05:00
..
community Update index.jsx (#9263) 2020-05-26 10:35:04 -04:00
community-plugins update deps, fix one-off pages 2020-04-07 17:53:26 -04:00
community-tools add community supported post-processor 2020-08-10 14:09:58 +02:00
docs Add packer fmt command (#10225) 2020-11-11 11:49:39 -05:00
downloads 🌷 Docs Website Maintenance (#9408) 2020-06-12 12:08:23 +02:00
guides remove old docs for previous behavior 2020-10-14 13:11:52 -07:00
home 📌 Hard Pin Website Dependencies (#9543) 2020-07-13 12:33:16 +02:00
intro Removed 'easy to use' 2020-06-09 12:47:53 -04:00
partials Add Azure CLI authentication (#10157) 2020-11-06 14:24:16 -05:00
security new footer 2020-04-07 17:53:25 -04:00
404.jsx shell snippet fixes, nextjs-scripts upgrades 2020-05-29 17:12:05 -04:00
_app.js Add new HashiStackMenu 2020-10-07 09:57:47 -05:00
_document.js shell snippet fixes, nextjs-scripts upgrades 2020-05-29 17:12:05 -04:00
_error.jsx shell snippet fixes, nextjs-scripts upgrades 2020-05-29 17:12:05 -04:00
index.jsx initial port 2020-04-07 17:50:46 -04:00
print.css initial port 2020-04-07 17:50:46 -04:00
style.css Bump HSM version and rm meganav styles 2020-10-08 13:53:36 -05:00