packer: add fmt example (#11047)
* add `packer fmt` * Update pages/common/packer.md Co-authored-by: Juri Dispan <juri.dispan@posteo.net> --------- Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
This commit is contained in:
@@ -10,3 +10,7 @@
|
|||||||
- Check the syntax of a Packer image config:
|
- Check the syntax of a Packer image config:
|
||||||
|
|
||||||
`packer validate {{path/to/config.json}}`
|
`packer validate {{path/to/config.json}}`
|
||||||
|
|
||||||
|
- Format a Packer image config:
|
||||||
|
|
||||||
|
`packer fmt {{path/to/config.pkr.hcl}}`
|
||||||
|
Reference in New Issue
Block a user