Browse Source

feat (terraform): add `apply -auto-approve` alias (#12658)

Closes #12591
Tushar Mohod 2 months ago
parent
commit
865291cb7a
2 changed files with 18 additions and 16 deletions
  1. 17 16
      plugins/terraform/README.md
  2. 1 0
      plugins/terraform/terraform.plugin.zsh

+ 17 - 16
plugins/terraform/README.md

@@ -15,22 +15,23 @@ plugins=(... terraform)
 
 
 ## Aliases
 ## Aliases
 
 
-| Alias  | Command                    |
-|--------|----------------------------|
-| `tf`   | `terraform`                |
-| `tfa`  | `terraform apply`          |
-| `tfc`  | `terraform console`        |
-| `tfd`  | `terraform destroy`        |
-| `tff`  | `terraform fmt`            |
-| `tffr` | `terraform fmt -recursive` |
-| `tfi`  | `terraform init`           |
-| `tfiu` | `terraform init -upgrade`  |
-| `tfo`  | `terraform output`         |
-| `tfp`  | `terraform plan`           |
-| `tfv`  | `terraform validate`       |
-| `tfs`  | `terraform state`          |
-| `tft`  | `terraform test`           |
-| `tfsh` | `terraform show`           |
+| Alias   | Command                          |
+|---------|----------------------------------|
+| `tf`    | `terraform`                      |
+| `tfa`   | `terraform apply`                |
+| `tfaa`  | `terraform apply -auto-approve`  |
+| `tfc`   | `terraform console`              |
+| `tfd`   | `terraform destroy`              |
+| `tff`   | `terraform fmt`                  |
+| `tffr`  | `terraform fmt -recursive`       |
+| `tfi`   | `terraform init`                 |
+| `tfiu`  | `terraform init -upgrade`        |
+| `tfo`   | `terraform output`               |
+| `tfp`   | `terraform plan`                 |
+| `tfv`   | `terraform validate`             |
+| `tfs`   | `terraform state`                |
+| `tft`   | `terraform test`                 |
+| `tfsh`  | `terraform show`                 |
 
 
 
 
 ## Prompt function
 ## Prompt function

+ 1 - 0
plugins/terraform/terraform.plugin.zsh

@@ -17,6 +17,7 @@ function tf_version_prompt_info() {
 
 
 alias tf='terraform'
 alias tf='terraform'
 alias tfa='terraform apply'
 alias tfa='terraform apply'
+alias tfaa='terraform apply -auto-approve'
 alias tfc='terraform console'
 alias tfc='terraform console'
 alias tfd='terraform destroy'
 alias tfd='terraform destroy'
 alias tff='terraform fmt'
 alias tff='terraform fmt'