You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ There are several [pre-commit](https://pre-commit.com/) hooks to keep Terraform
72
72
|`terraform_validate`| Validates all Terraform configuration files. |
73
73
|`terraform_docs`| Inserts input and output documentation into `README.md`. Recommended. |
74
74
|`terraform_docs_without_aggregate_type_defaults`| Inserts input and output documentation into `README.md` without aggregate type defaults. |
75
-
|`terraform_docs_replace`| Runs `terraform-docs` and pipes the output directly to README.md |
75
+
|`terraform_docs_replace`| Runs `terraform-docs` and pipes the output directly to README.md (requires terraform-docs v0.10.0 or later) |
76
76
|`terraform_tflint`| Validates all Terraform configuration files with [TFLint](https://github.com/terraform-linters/tflint). |
77
77
|`terragrunt_fmt`| Rewrites all [Terragrunt](https://github.com/gruntwork-io/terragrunt) configuration files (`*.hcl`) to a canonical format. |
78
78
|`terragrunt_validate`| Validates all [Terragrunt](https://github.com/gruntwork-io/terragrunt) configuration files (`*.hcl`) |
@@ -91,13 +91,13 @@ Check the [source file](https://github.com/antonbabenko/pre-commit-terraform/blo
91
91
```
92
92
if they are present in `README.md`.
93
93
94
-
1.`terraform_docs_replace` replaces the entire README.md rather than doing string replacement between markers. Put your additional documentation at the top of your `main.tf` for it to be pulled in. The optional `--dest` argument lets you change the name of the file that gets created/modified.
94
+
1.`terraform_docs_replace` replaces the entire README.md rather than doing string replacement between markers. Put your additional documentation at the top of your `main.tf` for it to be pulled in. The optional `--dest` argument lets you change the name of the file that gets created/modified. This hook requires terraform-docs v0.10.0 or later.
1. It is possible to pass additional arguments to shell scripts when using `terraform_docs` and `terraform_docs_without_aggregate_type_defaults`. Send pull-request with the new hook if there is something missing.
0 commit comments