Browse Source

feat(terraform): add `destroy -auto-approve` alias (#12704)

So4resAlex 1 month ago
parent
commit
62cf1201b0
2 changed files with 2 additions and 0 deletions
  1. 1 0
      plugins/terraform/README.md
  2. 1 0
      plugins/terraform/terraform.plugin.zsh

+ 1 - 0
plugins/terraform/README.md

@@ -22,6 +22,7 @@ plugins=(... terraform)
 | `tfaa`  | `terraform apply -auto-approve`  |
 | `tfc`   | `terraform console`              |
 | `tfd`   | `terraform destroy`              |
+| `tfd!`  | `terraform destroy -auto-approve`|
 | `tff`   | `terraform fmt`                  |
 | `tffr`  | `terraform fmt -recursive`       |
 | `tfi`   | `terraform init`                 |

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

@@ -20,6 +20,7 @@ alias tfa='terraform apply'
 alias tfaa='terraform apply -auto-approve'
 alias tfc='terraform console'
 alias tfd='terraform destroy'
+alias 'tfd!'='terraform destroy -auto-approve'
 alias tff='terraform fmt'
 alias tffr='terraform fmt -recursive'
 alias tfi='terraform init'