浏览代码

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

za 1 月之前
父节点
当前提交
dae5a41159
共有 2 个文件被更改,包括 19 次插入17 次删除
  1. 18 17
      plugins/opentofu/README.md
  2. 1 0
      plugins/opentofu/opentofu.plugin.zsh

+ 18 - 17
plugins/opentofu/README.md

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

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

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