1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-16 02:40:08 +00:00

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

Closes #12591
This commit is contained in:
Tushar Mohod 2024-09-19 00:10:54 +05:30 committed by GitHub
parent 9bcafe1c27
commit 865291cb7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 16 deletions

View file

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

View file

@ -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'