Nomad
nomad-pack fmt command reference
Use the nomad-pack fmt command to format pack files (.tpl templates and .hcl files).
Usage
nomad-pack fmt [options] [path...]
If you do not specify a path, the command formats files in the current directory.
Options
-check: Check whether files are formatted without modifying them. Returns exit code1if formatting is needed.-list: List files that would be modified. Defaults totrue.-write: Write formatted content to files. Defaults totrue.-recursive: Process directories recursively.
Examples
Format files in the current directory.
nomad-pack fmt
Format files in a specific pack directory.
nomad-pack fmt my-pack/
Check formatting without modifying files.
nomad-pack fmt -check .