mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-16 11:36:16 +08: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
@ -27,18 +27,27 @@ plugins=(... terraform)
|
||||
| `tfdp` | `terraform destroy -parallelism=1` |
|
||||
| `tff` | `terraform fmt` |
|
||||
| `tffr` | `terraform fmt -recursive` |
|
||||
| `tffck` | `terraform fmt -check -recursive` |
|
||||
| `tfg` | `terraform graph` |
|
||||
| `tfi` | `terraform init` |
|
||||
| `tfib` | `terraform init -backend=false` |
|
||||
| `tfir` | `terraform init -reconfigure` |
|
||||
| `tfiu` | `terraform init -upgrade` |
|
||||
| `tfiur` | `terraform init -upgrade -reconfigure` |
|
||||
| `tfip` | `terraform import` |
|
||||
| `tfo` | `terraform output` |
|
||||
| `tfp` | `terraform plan` |
|
||||
| `tfv` | `terraform validate` |
|
||||
| `tfpo` | `terraform plan -out tfplan` |
|
||||
| `tfpr` | `terraform providers` |
|
||||
| `tfr` | `terraform refresh` |
|
||||
| `tfs` | `terraform state` |
|
||||
| `tfsr` | `terraform state rm` |
|
||||
| `tft` | `terraform test` |
|
||||
| `tfsh` | `terraform show` |
|
||||
| `tfv` | `terraform validate` |
|
||||
| `tfw` | `terraform workspace` |
|
||||
| `tfwl` | `terraform workspace list` |
|
||||
| `tfwn` | `terraform workspace new` |
|
||||
| `tfws` | `terraform workspace select` |
|
||||
|
||||
## Prompt function
|
||||
|
||||
@ -25,17 +25,25 @@ alias tfd!='terraform destroy -auto-approve'
|
||||
alias tfdp='terraform destroy -parallelism=1'
|
||||
alias tff='terraform fmt'
|
||||
alias tffr='terraform fmt -recursive'
|
||||
alias tffck='terraform fmt -check -recursive'
|
||||
alias tfg='terraform graph'
|
||||
alias tfi='terraform init'
|
||||
alias tfib='terraform init -backend=false'
|
||||
alias tfir='terraform init -reconfigure'
|
||||
alias tfiu='terraform init -upgrade'
|
||||
alias tfiur='terraform init -upgrade -reconfigure'
|
||||
alias tfip='terraform import'
|
||||
alias tfo='terraform output'
|
||||
alias tfp='terraform plan'
|
||||
alias tfpo='terraform plan -out tfplan'
|
||||
alias tfv='terraform validate'
|
||||
alias tfpr='terraform providers'
|
||||
alias tfr='terraform refresh'
|
||||
alias tfs='terraform state'
|
||||
alias tfsr='terraform state rm'
|
||||
alias tft='terraform test'
|
||||
alias tfsh='terraform show'
|
||||
alias tfv='terraform validate'
|
||||
alias tfw='terraform workspace'
|
||||
alias tfwl='terraform workspace list'
|
||||
alias tfwn='terraform workspace new'
|
||||
alias tfws='terraform workspace select'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user