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
+26-6Lines changed: 26 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -225,13 +225,33 @@ For [checkov](https://github.com/bridgecrewio/checkov) you need to specify each
225
225
226
226
2. 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 something is missing.
227
227
228
-
For these hooks, you need to specify all arguments as one:
228
+
3. It is possible to automatically:
229
+
* create docfile (and PATH to it)
230
+
* extend exiting docs files, by appending markers to the end of file (see p.1)
- --hook-config=--path-to-file=README.md # Valid UNIX path. I.e. ../TFDOC.md or docs/README.md etc.
237
+
- --hook-config=--add-to-exiting-file=true # Boolean. true or false
238
+
- --hook-config=--create-file-if-not-exist=true # Boolean. true or false
239
+
```
240
+
241
+
4. You can provide arguments to terraform_doc. Eg. for [configuration](https://github.com/terraform-docs/terraform-docs/blob/master/docs/user-guide/configuration.md#usage):
242
+
243
+
```yaml
244
+
- id: terraform_docs
245
+
args:
246
+
- --args=--config=.terraform-docs.yml
247
+
248
+
5. If you need some exotic settings, it can be be done too. I.e. this one generates HCL files:
0 commit comments