mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-10 20:47:03 +00:00
26 lines
543 B
Plaintext
26 lines
543 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# tofu fmt
|
|
|
|
> Format configuration according to OpenTofu language style conventions.
|
|
> More information: <https://opentofu.org/docs/cli/commands/fmt/>.
|
|
|
|
- Format the configuration in the current directory:
|
|
|
|
`tofu fmt`
|
|
|
|
- Format the configuration in the current directory and subdirectories:
|
|
|
|
`tofu fmt -recursive`
|
|
|
|
- Display diffs of formatting changes:
|
|
|
|
`tofu fmt -diff`
|
|
|
|
- Do not list files that were formatted to `stdout`:
|
|
|
|
`tofu fmt -list=false`
|