mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-08-07 06:08:39 +02:00
feat(terraform): add missing commonly-used aliases
Add aliases for frequently used terraform commands that were missing: - tffck: terraform fmt -check -recursive (CI formatting check) - tfg: terraform graph (visualize resource graph) - tfib: terraform init -backend=false (init without backend) - tfip: terraform import (import existing infrastructure) - tfpo: terraform plan -out tfplan (save plan to file) - tfpr: terraform providers (list provider dependencies) - tfr: terraform refresh (refresh state) - tfsr: terraform state rm (remove from state) - tfwn: terraform workspace new (create workspace) Also sort aliases alphabetically and update README.
This commit is contained in:
parent
70ad5e3df8
commit
92231a8fa5
2 changed files with 19 additions and 2 deletions
|
|
@ -27,18 +27,27 @@ plugins=(... terraform)
|
||||||
| `tfdp` | `terraform destroy -parallelism=1` |
|
| `tfdp` | `terraform destroy -parallelism=1` |
|
||||||
| `tff` | `terraform fmt` |
|
| `tff` | `terraform fmt` |
|
||||||
| `tffr` | `terraform fmt -recursive` |
|
| `tffr` | `terraform fmt -recursive` |
|
||||||
|
| `tffck` | `terraform fmt -check -recursive` |
|
||||||
|
| `tfg` | `terraform graph` |
|
||||||
| `tfi` | `terraform init` |
|
| `tfi` | `terraform init` |
|
||||||
|
| `tfib` | `terraform init -backend=false` |
|
||||||
| `tfir` | `terraform init -reconfigure` |
|
| `tfir` | `terraform init -reconfigure` |
|
||||||
| `tfiu` | `terraform init -upgrade` |
|
| `tfiu` | `terraform init -upgrade` |
|
||||||
| `tfiur` | `terraform init -upgrade -reconfigure` |
|
| `tfiur` | `terraform init -upgrade -reconfigure` |
|
||||||
|
| `tfip` | `terraform import` |
|
||||||
| `tfo` | `terraform output` |
|
| `tfo` | `terraform output` |
|
||||||
| `tfp` | `terraform plan` |
|
| `tfp` | `terraform plan` |
|
||||||
| `tfv` | `terraform validate` |
|
| `tfpo` | `terraform plan -out tfplan` |
|
||||||
|
| `tfpr` | `terraform providers` |
|
||||||
|
| `tfr` | `terraform refresh` |
|
||||||
| `tfs` | `terraform state` |
|
| `tfs` | `terraform state` |
|
||||||
|
| `tfsr` | `terraform state rm` |
|
||||||
| `tft` | `terraform test` |
|
| `tft` | `terraform test` |
|
||||||
| `tfsh` | `terraform show` |
|
| `tfsh` | `terraform show` |
|
||||||
|
| `tfv` | `terraform validate` |
|
||||||
| `tfw` | `terraform workspace` |
|
| `tfw` | `terraform workspace` |
|
||||||
| `tfwl` | `terraform workspace list` |
|
| `tfwl` | `terraform workspace list` |
|
||||||
|
| `tfwn` | `terraform workspace new` |
|
||||||
| `tfws` | `terraform workspace select` |
|
| `tfws` | `terraform workspace select` |
|
||||||
|
|
||||||
## Prompt function
|
## Prompt function
|
||||||
|
|
|
||||||
|
|
@ -25,17 +25,25 @@ alias tfd!='terraform destroy -auto-approve'
|
||||||
alias tfdp='terraform destroy -parallelism=1'
|
alias tfdp='terraform destroy -parallelism=1'
|
||||||
alias tff='terraform fmt'
|
alias tff='terraform fmt'
|
||||||
alias tffr='terraform fmt -recursive'
|
alias tffr='terraform fmt -recursive'
|
||||||
|
alias tffck='terraform fmt -check -recursive'
|
||||||
|
alias tfg='terraform graph'
|
||||||
alias tfi='terraform init'
|
alias tfi='terraform init'
|
||||||
|
alias tfib='terraform init -backend=false'
|
||||||
alias tfir='terraform init -reconfigure'
|
alias tfir='terraform init -reconfigure'
|
||||||
alias tfiu='terraform init -upgrade'
|
alias tfiu='terraform init -upgrade'
|
||||||
alias tfiur='terraform init -upgrade -reconfigure'
|
alias tfiur='terraform init -upgrade -reconfigure'
|
||||||
|
alias tfip='terraform import'
|
||||||
alias tfo='terraform output'
|
alias tfo='terraform output'
|
||||||
alias tfp='terraform plan'
|
alias tfp='terraform plan'
|
||||||
alias tfpo='terraform plan -out tfplan'
|
alias tfpo='terraform plan -out tfplan'
|
||||||
alias tfv='terraform validate'
|
alias tfpr='terraform providers'
|
||||||
|
alias tfr='terraform refresh'
|
||||||
alias tfs='terraform state'
|
alias tfs='terraform state'
|
||||||
|
alias tfsr='terraform state rm'
|
||||||
alias tft='terraform test'
|
alias tft='terraform test'
|
||||||
alias tfsh='terraform show'
|
alias tfsh='terraform show'
|
||||||
|
alias tfv='terraform validate'
|
||||||
alias tfw='terraform workspace'
|
alias tfw='terraform workspace'
|
||||||
alias tfwl='terraform workspace list'
|
alias tfwl='terraform workspace list'
|
||||||
|
alias tfwn='terraform workspace new'
|
||||||
alias tfws='terraform workspace select'
|
alias tfws='terraform workspace select'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue