Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(terraform): extend original alias #11515

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mefengl
Copy link
Contributor

@mefengl mefengl commented Feb 22, 2023

Standards checklist:

  • The PR title is descriptive.
  • The PR doesn't replicate another PR which is already open.
  • I have read the contribution guide and followed all the instructions.
  • The code follows the code style guide detailed in the wiki.
  • The code is mine or it's from somewhere with an MIT-compatible license.
  • The code is efficient, to the best of my ability, and does not waste computer resources.
  • The code is stable and I have tested it myself, to the best of my abilities.
  • If the code introduces new aliases, I provide a valid use case for all plugin users down below.

Changes:

Alias Command
tf terraform
tfi terraform init
tff terraform fmt
tffr terraform fmt -recursive
tfv terraform validate
tfp terraform plan
tfa terraform apply
tfa! terraform apply -auto-approve
tfd terraform destroy
tfd! terraform destroy -auto-approve
tfc terraform console
tfo terraform output
tfall terraform init && terraform fmt -recursive && terraform validate && terraform plan && terraform apply
tfall! terraform init && terraform fmt -recursive && terraform validate && terraform plan && terraform apply -auto-approve
tfw terraform workspace
tfws terraform workspace select
tfwn terraform workspace new
tfwd terraform workspace delete
tfwls terraform workspace list

Other comments:

below is what I extended:

alias tffr='terraform fmt -recursive'
alias tfa!='terraform apply -auto-approve'
alias tfd!='terraform destroy -auto-approve'
alias tfall='terraform init && terraform fmt -recursive && terraform validate && terraform plan && terraform apply'
alias tfall!='terraform init && terraform fmt -recursive && terraform validate && terraform plan && terraform apply -auto-approve'

alias tfw='terraform workspace'
alias tfws='terraform workspace select'
alias tfwn='terraform workspace new'
alias tfwd='terraform workspace delete'
alias tfwls='terraform workspace list'

also: rearrange alias in logic order

@ohmyzsh ohmyzsh bot added Area: plugin Issue or PR related to a plugin Topic: alias Pull Request or issue regarding aliases Type: documentation Documentation issue or Pull Request labels Feb 22, 2023
alias tffr='terraform fmt -recursive'

alias tfa!='terraform apply -auto-approve'

alias tfd!='terraform destroy -auto-approve'

alias tfall='terraform init && terraform fmt -recursive && terraform validate && terraform plan && terraform apply'

alias tfall!='terraform init && terraform fmt -recursive && terraform validate && terraform plan && terraform apply -auto-approve'

also: rearrange alias in logic order
@mefengl
Copy link
Contributor Author

mefengl commented Feb 23, 2023

also, add alias tfr='terraform refresh'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: plugin Issue or PR related to a plugin Topic: alias Pull Request or issue regarding aliases Type: documentation Documentation issue or Pull Request
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

None yet

1 participant