diff options
author | Thomas O'Donnell <andytom@users.noreply.github.com> | 2021-10-04 18:08:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-04 18:08:58 +0200 |
commit | e74f428615b957c7dd359ec24bb98a5db612a966 (patch) | |
tree | 562521fefdd56bfe119ed3965c430f861e25d29e /docs | |
parent | ec0206f50d30f2da464343fb2e4d6f9b1efb563f (diff) |
fix(terraform): Improve module triggers (#3113)
Have updated which extentions trigger the terraform module, to remove
the `hcl` since this gives false positives as it is used by other
Hashicorp products and add the `tfstate` and `tfplan` which are more
accurate indicators.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/config/README.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/config/README.md b/docs/config/README.md index efa231fee..fbabf80dd 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -2929,7 +2929,7 @@ If you still want to enable it, [follow the example shown below](#with-terraform By default the module will be shown if any of the following conditions are met: - The current directory contains a `.terraform` folder -- Current directory contains a file with the `.tf` or `.hcl` extensions +- Current directory contains a file with the `.tf`, `.tfplan` or `.tfstate` extensions ### Options @@ -2937,8 +2937,8 @@ By default the module will be shown if any of the following conditions are met: | ------------------- | ------------------------------------ | ------------------------------------------------------------------------- | | `format` | `"via [$symbol$workspace]($style) "` | The format string for the module. | | `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | -| `symbol` | `"💠"` | A format string shown before the terraform workspace. | -| `detect_extensions` | `["tf", "hcl"]` | Which extensions should trigger this module. | +| `symbol` | `"💠"` | A format string shown before the terraform workspace. | +| `detect_extensions` | `["tf", "tfplan", "tfstate"]` | Which extensions should trigger this module. | | `detect_files` | `[]` | Which filenames should trigger this module. | | `detect_folders` | `[".terraform"]` | Which folders should trigger this module. | | `style` | `"bold 105"` | The style for the module. | |