From 8a8dca71a68d0d84167a5c0071d0a21dca5651c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dario=20Vladovi=C4=87?= Date: Thu, 29 Apr 2021 19:18:20 +0200 Subject: [PATCH] fix(gcloud): add double space after cloud emoji symbol (#2666) * fix(gcloud): add double space after cloud emoji symbol * docs(gcloud): update docs --- docs/config/README.md | 2 +- src/configs/gcloud.rs | 2 +- src/modules/gcloud.rs | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/config/README.md b/docs/config/README.md index 11cec356..056a39aa 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 fd291bad..77b65900 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 e930ed3d..444cc7eb 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()