mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 13:05:59 +02:00
terraform-fmt: add page (#3958)
This commit is contained in:
parent
f68c94e85c
commit
10f6f2a68e
1 changed files with 20 additions and 0 deletions
20
pages/common/terraform-fmt.md
Normal file
20
pages/common/terraform-fmt.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# terraform fmt
|
||||
|
||||
> Format configuration according to Terraform language style conventions.
|
||||
> More information: <https://www.terraform.io/docs/commands/fmt.html>.
|
||||
|
||||
- Format the configuration in the current directory:
|
||||
|
||||
`terraform fmt`
|
||||
|
||||
- Format the configuration in the current directory and subdirectories:
|
||||
|
||||
`terraform fmt -recursive`
|
||||
|
||||
- Display diffs of formatting changes:
|
||||
|
||||
`terraform fmt -diff`
|
||||
|
||||
- Do not list files that were formatted to stdout:
|
||||
|
||||
`terraform fmt -list=false`
|
Loading…
Add table
Reference in a new issue