From 60a131952424ba9682e49aae701b73ce8f487d2e Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Sun, 8 Dec 2019 20:43:36 -0500 Subject: [PATCH] docs: Reorder terraform option rows for consistency --- docs/config/README.md | 2 +- src/configs/terraform.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/config/README.md b/docs/config/README.md index 176e3c515..868482c39 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -1004,9 +1004,9 @@ The module will be shown if any of the following conditions are met: | Variable | Default | Description | | -------------- | ------------- | ----------------------------------------------------------- | | `symbol` | `"💠 "` | The symbol used before displaying the terraform workspace. | +| `show_version` | `false` | Shows the terraform version. Very slow on large workspaces. | | `style` | `"bold 105"` | The style for the module. | | `disabled` | `false` | Disables the `terraform` module. | -| `show_version` | `false` | Shows the terraform version. Very slow on large workspaces. | ### Example diff --git a/src/configs/terraform.rs b/src/configs/terraform.rs index 3d427e5c4..96840f938 100644 --- a/src/configs/terraform.rs +++ b/src/configs/terraform.rs @@ -8,9 +8,9 @@ pub struct TerraformConfig<'a> { pub symbol: SegmentConfig<'a>, pub workspace: SegmentConfig<'a>, pub version: SegmentConfig<'a>, + pub show_version: bool, pub style: Style, pub disabled: bool, - pub show_version: bool, } impl<'a> RootModuleConfig<'a> for TerraformConfig<'a> { @@ -19,9 +19,9 @@ impl<'a> RootModuleConfig<'a> for TerraformConfig<'a> { symbol: SegmentConfig::new("💠 "), workspace: SegmentConfig::default(), version: SegmentConfig::default(), + show_version: false, style: Color::Fixed(105).bold(), disabled: false, - show_version: false, } } }