From 865291cb7af2fef7e67128fd4294f3ffa9b08c3d Mon Sep 17 00:00:00 2001 From: Tushar Mohod <98651842+tusharmohod@users.noreply.github.com> Date: Thu, 19 Sep 2024 00:10:54 +0530 Subject: [PATCH] feat (terraform): add `apply -auto-approve` alias (#12658) Closes #12591 --- plugins/terraform/README.md | 33 +++++++++++++------------- plugins/terraform/terraform.plugin.zsh | 1 + 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/plugins/terraform/README.md b/plugins/terraform/README.md index ca5a771bc..3f8ed6dee 100644 --- a/plugins/terraform/README.md +++ b/plugins/terraform/README.md @@ -15,22 +15,23 @@ plugins=(... terraform) ## 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 diff --git a/plugins/terraform/terraform.plugin.zsh b/plugins/terraform/terraform.plugin.zsh index 181f57b9b..bedd46011 100644 --- a/plugins/terraform/terraform.plugin.zsh +++ b/plugins/terraform/terraform.plugin.zsh @@ -17,6 +17,7 @@ function tf_version_prompt_info() { alias tf='terraform' alias tfa='terraform apply' +alias tfaa='terraform apply -auto-approve' alias tfc='terraform console' alias tfd='terraform destroy' alias tff='terraform fmt'