mirror of
https://github.com/starship/starship.git
synced 2025-03-29 00:46:11 +01:00
fix(gcloud): add double space after cloud emoji symbol (#2666)
* fix(gcloud): add double space after cloud emoji symbol * docs(gcloud): update docs
This commit is contained in:
parent
16855fe8e2
commit
8a8dca71a6
@ -1040,7 +1040,7 @@ This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gc
|
|||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ---------------- | ---------------------------------------------- | --------------------------------------------------------------- |
|
| ---------------- | ---------------------------------------------- | --------------------------------------------------------------- |
|
||||||
| `format` | `'on [$symbol$account(\($region\))]($style) '` | The format for the module. |
|
| `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. |
|
| `region_aliases` | | Table of region aliases to display in addition to the GCP name. |
|
||||||
| `style` | `"bold blue"` | The style for the module. |
|
| `style` | `"bold blue"` | The style for the module. |
|
||||||
| `disabled` | `false` | Disables the `gcloud` module. |
|
| `disabled` | `false` | Disables the `gcloud` module. |
|
||||||
|
@ -16,7 +16,7 @@ impl<'a> Default for GcloudConfig<'a> {
|
|||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
GcloudConfig {
|
GcloudConfig {
|
||||||
format: "on [$symbol$account(\\($region\\))]($style) ",
|
format: "on [$symbol$account(\\($region\\))]($style) ",
|
||||||
symbol: "☁️ ",
|
symbol: "☁️ ",
|
||||||
style: "bold blue",
|
style: "bold blue",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
region_aliases: HashMap::new(),
|
region_aliases: HashMap::new(),
|
||||||
|
@ -177,7 +177,7 @@ account = foo@example.com
|
|||||||
.collect();
|
.collect();
|
||||||
let expected = Some(format!(
|
let expected = Some(format!(
|
||||||
"on {} ",
|
"on {} ",
|
||||||
Color::Blue.bold().paint("☁️ foo@example.com")
|
Color::Blue.bold().paint("☁️ foo@example.com")
|
||||||
));
|
));
|
||||||
|
|
||||||
assert_eq!(actual, expected);
|
assert_eq!(actual, expected);
|
||||||
@ -209,7 +209,7 @@ region = us-central1
|
|||||||
.collect();
|
.collect();
|
||||||
let expected = Some(format!(
|
let expected = Some(format!(
|
||||||
"on {} ",
|
"on {} ",
|
||||||
Color::Blue.bold().paint("☁️ foo@example.com(us-central1)")
|
Color::Blue.bold().paint("☁️ foo@example.com(us-central1)")
|
||||||
));
|
));
|
||||||
|
|
||||||
assert_eq!(actual, expected);
|
assert_eq!(actual, expected);
|
||||||
@ -245,7 +245,7 @@ region = us-central1
|
|||||||
.collect();
|
.collect();
|
||||||
let expected = Some(format!(
|
let expected = Some(format!(
|
||||||
"on {} ",
|
"on {} ",
|
||||||
Color::Blue.bold().paint("☁️ foo@example.com(uc1)")
|
Color::Blue.bold().paint("☁️ foo@example.com(uc1)")
|
||||||
));
|
));
|
||||||
|
|
||||||
assert_eq!(actual, expected);
|
assert_eq!(actual, expected);
|
||||||
@ -266,7 +266,7 @@ region = us-central1
|
|||||||
format = "on [$symbol$active]($style) "
|
format = "on [$symbol$active]($style) "
|
||||||
})
|
})
|
||||||
.collect();
|
.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);
|
assert_eq!(actual, expected);
|
||||||
dir.close()
|
dir.close()
|
||||||
@ -296,7 +296,7 @@ project = abc
|
|||||||
format = "on [$symbol$project]($style) "
|
format = "on [$symbol$project]($style) "
|
||||||
})
|
})
|
||||||
.collect();
|
.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);
|
assert_eq!(actual, expected);
|
||||||
dir.close()
|
dir.close()
|
||||||
@ -352,7 +352,7 @@ project = overridden
|
|||||||
format = "on [$symbol$project]($style) "
|
format = "on [$symbol$project]($style) "
|
||||||
})
|
})
|
||||||
.collect();
|
.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);
|
assert_eq!(actual, expected);
|
||||||
dir.close()
|
dir.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user