From 2a32343e07afa9758fda992253de4b912c81c227 Mon Sep 17 00:00:00 2001 From: anshul sharma Date: Tue, 29 Apr 2025 13:45:49 +0530 Subject: [PATCH] doc changes --- website/content/docs/commands/fmt.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/website/content/docs/commands/fmt.mdx b/website/content/docs/commands/fmt.mdx index 03a24e800..23e7909ff 100644 --- a/website/content/docs/commands/fmt.mdx +++ b/website/content/docs/commands/fmt.mdx @@ -32,6 +32,15 @@ my-template.pkr.hcl ``` +Format multiple configuration files, writing the changes back to respective original files. + +```shell-session +$ packer fmt my-template.pkr.hcl my-varfile.pkrvars.hcl +my-template.pkr.hcl +my-varfile.pkrvars.hcl + +``` + Format a configuration file, reading from stdin and writing to stdout. ```shell-session