dae5a4115917e2b9c65d9166c5d64df693f70dd4
- Author
- za <zakiakhmad@gmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
feat(opentofu): add `apply -auto-approve` alias (#12714)
Diff
1diff --git a/plugins/opentofu/README.md b/plugins/opentofu/README.md
2index 9811e27519c0bd5a07b50527054631fa35064710..cc6e94acd4af10596c5031ec1b6d1cc9c7863044 100644
3--- a/plugins/opentofu/README.md
4+++ b/plugins/opentofu/README.md
5@@ -15,23 +15,24 @@ plugins=(... opentofu)
6
7 ## Aliases
8
9-| Alias | Command |
10-|--------|-----------------------|
11-| `tt` | `tofu` |
12-| `tta` | `tofu apply` |
13-| `ttc` | `tofu console` |
14-| `ttd` | `tofu destroy` |
15-| `ttf` | `tofu fmt` |
16-| `ttfr` | `tofu fmt -recursive` |
17-| `tti` | `tofu init` |
18-| `tto` | `tofu output` |
19-| `ttp` | `tofu plan` |
20-| `ttv` | `tofu validate` |
21-| `tts` | `tofu state` |
22-| `ttsh` | `tofu show` |
23-| `ttr` | `tofu refresh` |
24-| `ttt` | `tofu test` |
25-| `ttws` | `tofu workspace` |
26+| Alias | Command |
27+|--------|------------------------------|
28+| `tt` | `tofu` |
29+| `tta` | `tofu apply` |
30+| `ttaa` | `tofu apply -auto-approve` |
31+| `ttc` | `tofu console` |
32+| `ttd` | `tofu destroy` |
33+| `ttf` | `tofu fmt` |
34+| `ttfr` | `tofu fmt -recursive` |
35+| `tti` | `tofu init` |
36+| `tto` | `tofu output` |
37+| `ttp` | `tofu plan` |
38+| `ttv` | `tofu validate` |
39+| `tts` | `tofu state` |
40+| `ttsh` | `tofu show` |
41+| `ttr` | `tofu refresh` |
42+| `ttt` | `tofu test` |
43+| `ttws` | `tofu workspace` |
44
45
46 ## Prompt functions
47diff --git a/plugins/opentofu/opentofu.plugin.zsh b/plugins/opentofu/opentofu.plugin.zsh
48index aa6cac78a85e4b0387e428d0fe17a114675ac6dd..79b102a74ea7de9eac7c42521ceafb2578518f1b 100644
49--- a/plugins/opentofu/opentofu.plugin.zsh
50+++ b/plugins/opentofu/opentofu.plugin.zsh
51@@ -29,6 +29,7 @@ function tofu_version_prompt_info() {
52
53 alias tt='tofu'
54 alias tta='tofu apply'
55+alias ttaa='tofu apply -auto-approve'
56 alias ttc='tofu console'
57 alias ttd='tofu destroy'
58 alias ttf='tofu fmt'