Browse Source

feat(terraform): add `fmt -recursive` alias (#12637)

michael-follmann 2 months ago
parent
commit
e6380085f3

+ 17 - 16
plugins/opentofu/README.md

@@ -15,22 +15,23 @@ plugins=(... opentofu)
 
 ## Aliases
 
-| Alias | Command         |
-| ----- | --------------- |
-| `tt`  | `tofu`          |
-| `tta` | `tofu apply`    |
-| `ttc` | `tofu console`  |
-| `ttd` | `tofu destroy`  |
-| `ttf` | `tofu fmt`      |
-| `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`          |
+| `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

@@ -32,6 +32,7 @@ alias tta='tofu apply'
 alias ttc='tofu console'
 alias ttd='tofu destroy'
 alias ttf='tofu fmt'
+alias ttfr='tofu fmt -recursive'
 alias tti='tofu init'
 alias tto='tofu output'
 alias ttp='tofu plan'

+ 16 - 15
plugins/terraform/README.md

@@ -15,21 +15,22 @@ plugins=(... terraform)
 
 ## Aliases
 
-| Alias  | Command                   |
-| ------ | ------------------------- |
-| `tf`   | `terraform`               |
-| `tfa`  | `terraform apply`         |
-| `tfc`  | `terraform console`       |
-| `tfd`  | `terraform destroy`       |
-| `tff`  | `terraform fmt`           |
-| `tfi`  | `terraform init`          |
-| `tfiu` | `terraform init -upgrade` |
-| `tfo`  | `terraform output`        |
-| `tfp`  | `terraform plan`          |
-| `tfv`  | `terraform validate`      |
-| `tfs`  | `terraform state`         |
-| `tft`  | `terraform test`          |
-| `tfsh` | `terraform show`          |
+| Alias  | Command                    |
+|--------|----------------------------|
+| `tf`   | `terraform`                |
+| `tfa`  | `terraform apply`          |
+| `tfc`  | `terraform console`        |
+| `tfd`  | `terraform destroy`        |
+| `tff`  | `terraform fmt`            |
+| `tffr` | `terraform fmt -recursive` |
+| `tfi`  | `terraform init`           |
+| `tfiu` | `terraform init -upgrade`  |
+| `tfo`  | `terraform output`         |
+| `tfp`  | `terraform plan`           |
+| `tfv`  | `terraform validate`       |
+| `tfs`  | `terraform state`          |
+| `tft`  | `terraform test`           |
+| `tfsh` | `terraform show`           |
 
 
 ## Prompt function

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

@@ -20,6 +20,7 @@ alias tfa='terraform apply'
 alias tfc='terraform console'
 alias tfd='terraform destroy'
 alias tff='terraform fmt'
+alias tffr='terraform fmt -recursive'
 alias tfi='terraform init'
 alias tfiu='terraform init -upgrade'
 alias tfo='terraform output'