summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.me>2019-12-08 20:43:36 -0500
committerMatan Kushner <hello@matchai.me>2019-12-08 20:43:36 -0500
commit60a131952424ba9682e49aae701b73ce8f487d2e (patch)
treeaa572b2f4f47e6c98e28a12186d2b3ebbe287eea
parent44b37a7baca4d9e50a524c51f9ea305f0b5f60fa (diff)
docs: Reorder terraform option rows for consistency
-rw-r--r--docs/config/README.md2
-rw-r--r--src/configs/terraform.rs4
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,
}
}
}