summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDario Vladović <d.vladimyr@gmail.com>2021-04-29 19:18:20 +0200
committerGitHub <noreply@github.com>2021-04-29 19:18:20 +0200
commit8a8dca71a68d0d84167a5c0071d0a21dca5651c2 (patch)
tree600e2bf3478c16bd7dc753ecaeb3b3bf4a4ecb5d
parent16855fe8e24773173ee89e35108a538a831c0046 (diff)
fix(gcloud): add double space after cloud emoji symbol (#2666)
* fix(gcloud): add double space after cloud emoji symbol * docs(gcloud): update docs
-rw-r--r--docs/config/README.md2
-rw-r--r--src/configs/gcloud.rs2
-rw-r--r--src/modules/gcloud.rs12
3 files changed, 8 insertions, 8 deletions
diff --git a/docs/config/README.md b/docs/config/README.md
index 11cec356f..056a39aa3 100644
--- a/docs/config/README.md
+++ b/docs/config/README.md
@@ -1040,7 +1040,7 @@ This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gc
| Option | Default | Description |
| ---------------- | ---------------------------------------------- | --------------------------------------------------------------- |
| `format` | `'on [$symbol$account(\($region\))]($style) '` | The format for the module. |
-| `symbol` | `"☁️ "` | The symbol used before displaying the current GCP profile. |
+| `symbol` | `"☁️ "` | The symbol used before displaying the current GCP profile. |
| `region_aliases` | | Table of region aliases to display in addition to the GCP name. |
| `style` | `"bold blue"` | The style for the module. |
| `disabled` | `false` | Disables the `gcloud` module. |
diff --git a/src/configs/gcloud.rs b/src/configs/gcloud.rs
index fd291badf..77b65900f 100644
--- a/src/configs/gcloud.rs
+++ b/src/configs/gcloud.rs
@@ -16,7 +16,7 @@ impl<'a> Default for GcloudConfig<'a> {
fn default() -> Self {
GcloudConfig {
format: "on [$symbol$account(\\($region\\))]($style) ",
- symbol: "☁️ ",
+ symbol: "☁️ ",
style: "bold blue",
disabled: false,
region_aliases: HashMap::new(),
diff --git a/src/modules/gcloud.rs b/src/modules/gcloud.rs
index e930ed3d5..444cc7ebc 100644
--- a/src/modules/gcloud.rs
+++ b/src/modules/gcloud.rs
@@ -177,7 +177,7 @@ account = foo@example.com
.collect();
let expected = Some(format!(
"on {} ",
- Color::Blue.bold().paint("☁️ foo@example.com")
+ Color::Blue.bold().paint("☁️ foo@example.com")
));
assert_eq!(actual, expected);
@@ -209,7 +209,7 @@ region = us-central1
.collect();
let expected = Some(format!(
"on {} ",
- Color::Blue.bold().paint("☁️ foo@example.com(us-central1)")
+ Color::Blue.bold().paint("☁️ foo@example.com(us-central1)")
));
assert_eq!(actual, expected);
@@ -245,7 +245,7 @@ region = us-central1
.collect();
let expected = Some(format!(
"on {} ",
- Color::Blue.bold().paint("☁️ foo@example.com(uc1)")
+ Color::Blue.bold().paint("☁️ foo@example.com(uc1)")
));
assert_eq!(actual, expected);
@@ -266,7 +266,7 @@ region = us-central1
format = "on [$symbol$active]($style) "
})
.collect();
- let expected = Some(format!("on {} ", Color::Blue.bold().paint("☁️ default1")));
+ let expected = Some(format!("on {} ", Color::Blue.bold().paint("☁️ default1")));
assert_eq!(actual, expected);
dir.close()
@@ -296,7 +296,7 @@ project = abc
format = "on [$symbol$project]($style) "
})
.collect();
- let expected = Some(format!("on {} ", Color::Blue.bold().paint("☁️ abc")));
+ let expected = Some(format!("on {} ", Color::Blue.bold().paint("☁️ abc")));
assert_eq!(actual, expected);
dir.close()
@@ -352,7 +352,7 @@ project = overridden
format = "on [$symbol$project]($style) "
})
.collect();
- let expected = Some(format!("on {} ", Color::Blue.bold().paint("☁️ overridden")));
+ let expected = Some(format!("on {} ", Color::Blue.bold().paint("☁️ overridden")));
assert_eq!(actual, expected);
dir.close()