Browse Source

feat(opentofu): add `destroy -auto-approve` alias (#12719)

za 1 month ago
parent
commit
7ce26a810d
2 changed files with 2 additions and 0 deletions
  1. 1 0
      plugins/opentofu/README.md
  2. 1 0
      plugins/opentofu/opentofu.plugin.zsh

+ 1 - 0
plugins/opentofu/README.md

@@ -22,6 +22,7 @@ plugins=(... opentofu)
 | `ttaa` | `tofu apply -auto-approve`   |
 | `ttc`  | `tofu console`               |
 | `ttd`  | `tofu destroy`               |
+| `ttd!` | `tofu destroy -auto-approve` |
 | `ttf`  | `tofu fmt`                   |
 | `ttfr` | `tofu fmt -recursive`        |
 | `tti`  | `tofu init`                  |

+ 1 - 0
plugins/opentofu/opentofu.plugin.zsh

@@ -32,6 +32,7 @@ alias tta='tofu apply'
 alias ttaa='tofu apply -auto-approve'
 alias ttc='tofu console'
 alias ttd='tofu destroy'
+alias ttd!='tofu destroy -auto-approve'
 alias ttf='tofu fmt'
 alias ttfr='tofu fmt -recursive'
 alias tti='tofu init'