feat(opentofu): add apply -auto-approve alias (#12714)

This commit is contained in:
za 2024-10-02 15:49:31 +07:00 committed by GitHub
parent f4423ebd09
commit dae5a41159
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 17 deletions

View file

@ -15,23 +15,24 @@ plugins=(... opentofu)
## Aliases ## Aliases
| Alias | Command | | Alias | Command |
|--------|-----------------------| |--------|------------------------------|
| `tt` | `tofu` | | `tt` | `tofu` |
| `tta` | `tofu apply` | | `tta` | `tofu apply` |
| `ttc` | `tofu console` | | `ttaa` | `tofu apply -auto-approve` |
| `ttd` | `tofu destroy` | | `ttc` | `tofu console` |
| `ttf` | `tofu fmt` | | `ttd` | `tofu destroy` |
| `ttfr` | `tofu fmt -recursive` | | `ttf` | `tofu fmt` |
| `tti` | `tofu init` | | `ttfr` | `tofu fmt -recursive` |
| `tto` | `tofu output` | | `tti` | `tofu init` |
| `ttp` | `tofu plan` | | `tto` | `tofu output` |
| `ttv` | `tofu validate` | | `ttp` | `tofu plan` |
| `tts` | `tofu state` | | `ttv` | `tofu validate` |
| `ttsh` | `tofu show` | | `tts` | `tofu state` |
| `ttr` | `tofu refresh` | | `ttsh` | `tofu show` |
| `ttt` | `tofu test` | | `ttr` | `tofu refresh` |
| `ttws` | `tofu workspace` | | `ttt` | `tofu test` |
| `ttws` | `tofu workspace` |
## Prompt functions ## Prompt functions

View file

@ -29,6 +29,7 @@ function tofu_version_prompt_info() {
alias tt='tofu' alias tt='tofu'
alias tta='tofu apply' alias tta='tofu apply'
alias ttaa='tofu apply -auto-approve'
alias ttc='tofu console' alias ttc='tofu console'
alias ttd='tofu destroy' alias ttd='tofu destroy'
alias ttf='tofu fmt' alias ttf='tofu fmt'