mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-11 07:40:57 +00:00
feat(terraform): Add hcl extension support to Terraform module (#1875)
* Add hcl file extension to terraform module Signed-off-by: adhaamehab <adhaamehab.me@gmail.com> * Update docs Signed-off-by: adhaamehab <adhaamehab.me@gmail.com>
This commit is contained in:
parent
680663f5b3
commit
ac88301294
@ -2244,7 +2244,7 @@ If you still want to enable it, [follow the example shown below](#with-version).
|
|||||||
The module will be shown if any of the following conditions are met:
|
The module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
- The current directory contains a `.terraform` folder
|
- The current directory contains a `.terraform` folder
|
||||||
- Current directory contains a file with the `.tf` extension
|
- Current directory contains a file with the `.tf` or `.hcl` extensions
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
|
|||||||
let is_terraform_project = context
|
let is_terraform_project = context
|
||||||
.try_begin_scan()?
|
.try_begin_scan()?
|
||||||
.set_folders(&[".terraform"])
|
.set_folders(&[".terraform"])
|
||||||
.set_extensions(&["tf"])
|
.set_extensions(&["tf", "hcl"])
|
||||||
.is_match();
|
.is_match();
|
||||||
|
|
||||||
if !is_terraform_project {
|
if !is_terraform_project {
|
||||||
|
Loading…
Reference in New Issue
Block a user