mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-01 01:04:00 +00:00
fix(status): replace multiply with cross mark emoji (#4461)
This commit is contained in:
parent
49995301ce
commit
186d99e623
4
.github/config-schema.json
vendored
4
.github/config-schema.json
vendored
@ -1356,7 +1356,7 @@
|
|||||||
"signal_symbol": "⚡",
|
"signal_symbol": "⚡",
|
||||||
"style": "bold red",
|
"style": "bold red",
|
||||||
"success_symbol": "",
|
"success_symbol": "",
|
||||||
"symbol": "✖"
|
"symbol": "❌"
|
||||||
},
|
},
|
||||||
"allOf": [
|
"allOf": [
|
||||||
{
|
{
|
||||||
@ -4680,7 +4680,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"symbol": {
|
"symbol": {
|
||||||
"default": "✖",
|
"default": "❌",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"success_symbol": {
|
"success_symbol": {
|
||||||
|
@ -3437,7 +3437,7 @@ To enable it, set `disabled` to `false` in your configuration file.
|
|||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| --------------------------- | ----------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||||
| `format` | `"[$symbol$status]($style) "` | The format of the module |
|
| `format` | `"[$symbol$status]($style) "` | The format of the module |
|
||||||
| `symbol` | `"✖"` | The symbol displayed on program error |
|
| `symbol` | `"❌"` | The symbol displayed on program error |
|
||||||
| `success_symbol` | `""` | The symbol displayed on program success |
|
| `success_symbol` | `""` | The symbol displayed on program success |
|
||||||
| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
|
| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
|
||||||
| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
|
| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
|
||||||
|
@ -30,7 +30,7 @@ impl<'a> Default for StatusConfig<'a> {
|
|||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
StatusConfig {
|
StatusConfig {
|
||||||
format: "[$symbol$status]($style) ",
|
format: "[$symbol$status]($style) ",
|
||||||
symbol: "✖",
|
symbol: "❌",
|
||||||
success_symbol: "",
|
success_symbol: "",
|
||||||
not_executable_symbol: "🚫",
|
not_executable_symbol: "🚫",
|
||||||
not_found_symbol: "🔍",
|
not_found_symbol: "🔍",
|
||||||
|
@ -323,12 +323,12 @@ mod tests {
|
|||||||
for status in &exit_values {
|
for status in &exit_values {
|
||||||
let expected = Some(format!(
|
let expected = Some(format!(
|
||||||
"{} ",
|
"{} ",
|
||||||
Color::Red.bold().paint(format!("✖{}", status))
|
Color::Red.bold().paint(format!("❌{}", status))
|
||||||
));
|
));
|
||||||
let actual = ModuleRenderer::new("status")
|
let actual = ModuleRenderer::new("status")
|
||||||
.config(toml::toml! {
|
.config(toml::toml! {
|
||||||
[status]
|
[status]
|
||||||
symbol = "✖"
|
symbol = "❌"
|
||||||
disabled = false
|
disabled = false
|
||||||
})
|
})
|
||||||
.status(*status)
|
.status(*status)
|
||||||
@ -345,12 +345,12 @@ mod tests {
|
|||||||
for (exit_value, string_value) in exit_values.iter().zip(string_values) {
|
for (exit_value, string_value) in exit_values.iter().zip(string_values) {
|
||||||
let expected = Some(format!(
|
let expected = Some(format!(
|
||||||
"{} ",
|
"{} ",
|
||||||
Color::Red.bold().paint(format!("✖{}", string_value))
|
Color::Red.bold().paint(format!("❌{}", string_value))
|
||||||
));
|
));
|
||||||
let actual = ModuleRenderer::new("status")
|
let actual = ModuleRenderer::new("status")
|
||||||
.config(toml::toml! {
|
.config(toml::toml! {
|
||||||
[status]
|
[status]
|
||||||
symbol = "✖"
|
symbol = "❌"
|
||||||
disabled = false
|
disabled = false
|
||||||
format = "[${symbol}${hex_status}]($style) "
|
format = "[${symbol}${hex_status}]($style) "
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user