Update terraform example to remove wrapper

Martyn Loughran 2022-12-12 20:24:51 +00:00
parent baba0da831
commit 677aa6750c

16
Home.md

@ -147,18 +147,10 @@ Note that Prettier also supports some other languages through the use of plugins
```
[formatter.terraform]
# Terraform fmt only takes one file at the time so we create a wrapper.
# See https://github.com/numtide/treefmt/issues/97
command = "/bin/sh"
options = [
"-euc",
"""
for f in "$@"; do
terraform fmt "$f"
done
""",
"--",
]
# Careful, only terraform 1.3.0 or later accept a list of files.
# see https://github.com/numtide/treefmt/issues/97
command = "terraform"
options = ["fmt"]
includes = ["*.tf"]
```