mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-28 15:56:28 +00:00
fix: replace emoji for cmake and erlang (#1787)
This commit is contained in:
parent
2f106a3d37
commit
783eb3373d
@ -452,7 +452,7 @@ The `cmake` module shows the currently installed version of CMake if:
|
|||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ---------- | ---------------------------------- | -------------------------------------------- |
|
| ---------- | ---------------------------------- | -------------------------------------------- |
|
||||||
| `format` | `"via [$symbol$version]($style) "` | The format for the module. |
|
| `format` | `"via [$symbol$version]($style) "` | The format for the module. |
|
||||||
| `symbol` | `"🛆 "` | The symbol used before the version of cmake. |
|
| `symbol` | `"喝 "` | The symbol used before the version of cmake. |
|
||||||
| `style` | `"bold blue"` | The style for the module. |
|
| `style` | `"bold blue"` | The style for the module. |
|
||||||
| `disabled` | `false` | Disables the `cmake` module. |
|
| `disabled` | `false` | Disables the `cmake` module. |
|
||||||
|
|
||||||
@ -920,7 +920,7 @@ The module will be shown if any of the following conditions are met:
|
|||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ---------- | ---------------------------------- | -------------------------------------------------------- |
|
| ---------- | ---------------------------------- | -------------------------------------------------------- |
|
||||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of erlang. |
|
| `symbol` | `" "` | The symbol used before displaying the version of erlang. |
|
||||||
| `style` | `"bold red"` | The style for the module. |
|
| `style` | `"bold red"` | The style for the module. |
|
||||||
| `format` | `"via [$symbol$version]($style) "` | The format for the module. |
|
| `format` | `"via [$symbol$version]($style) "` | The format for the module. |
|
||||||
| `disabled` | `false` | Disables the `erlang` module. |
|
| `disabled` | `false` | Disables the `erlang` module. |
|
||||||
|
@ -14,7 +14,7 @@ impl<'a> RootModuleConfig<'a> for CMakeConfig<'a> {
|
|||||||
fn new() -> Self {
|
fn new() -> Self {
|
||||||
CMakeConfig {
|
CMakeConfig {
|
||||||
format: "via [$symbol$version]($style) ",
|
format: "via [$symbol$version]($style) ",
|
||||||
symbol: "🛆 ",
|
symbol: "喝 ",
|
||||||
style: "bold blue",
|
style: "bold blue",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ impl<'a> RootModuleConfig<'a> for ErlangConfig<'a> {
|
|||||||
fn new() -> Self {
|
fn new() -> Self {
|
||||||
ErlangConfig {
|
ErlangConfig {
|
||||||
format: "via [$symbol$version]($style) ",
|
format: "via [$symbol$version]($style) ",
|
||||||
symbol: "🖧 ",
|
symbol: " ",
|
||||||
style: "bold red",
|
style: "bold red",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ mod tests {
|
|||||||
let dir = tempfile::tempdir()?;
|
let dir = tempfile::tempdir()?;
|
||||||
File::create(dir.path().join("CMakeLists.txt"))?.sync_all()?;
|
File::create(dir.path().join("CMakeLists.txt"))?.sync_all()?;
|
||||||
let actual = ModuleRenderer::new("cmake").path(dir.path()).collect();
|
let actual = ModuleRenderer::new("cmake").path(dir.path()).collect();
|
||||||
let expected = Some(format!("via {} ", Color::Blue.bold().paint("🛆 v3.17.3")));
|
let expected = Some(format!("via {} ", Color::Blue.bold().paint("喝 v3.17.3")));
|
||||||
assert_eq!(expected, actual);
|
assert_eq!(expected, actual);
|
||||||
dir.close()
|
dir.close()
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,7 @@ mod tests {
|
|||||||
let dir = tempfile::tempdir()?;
|
let dir = tempfile::tempdir()?;
|
||||||
File::create(dir.path().join("rebar.config"))?.sync_all()?;
|
File::create(dir.path().join("rebar.config"))?.sync_all()?;
|
||||||
|
|
||||||
let expected = Some(format!("via {} ", Color::Red.bold().paint("🖧 22.1.3")));
|
let expected = Some(format!("via {} ", Color::Red.bold().paint(" 22.1.3")));
|
||||||
let output = ModuleRenderer::new("erlang").path(dir.path()).collect();
|
let output = ModuleRenderer::new("erlang").path(dir.path()).collect();
|
||||||
|
|
||||||
assert_eq!(output, expected);
|
assert_eq!(output, expected);
|
||||||
|
Loading…
Reference in New Issue
Block a user