浏览代码

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

So4resAlex 1 月之前
父节点
当前提交
62cf1201b0
共有 2 个文件被更改,包括 2 次插入0 次删除
  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'