1
0
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:
Matan Kushner 2020-10-13 18:01:35 -04:00 committed by GitHub
parent 2f106a3d37
commit 783eb3373d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -452,7 +452,7 @@ The `cmake` module shows the currently installed version of CMake if:
| Option | Default | Description |
| ---------- | ---------------------------------- | -------------------------------------------- |
| `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. |
| `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 |
| ---------- | ---------------------------------- | -------------------------------------------------------- |
| `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. |
| `format` | `"via [$symbol$version]($style) "` | The format for the module. |
| `disabled` | `false` | Disables the `erlang` module. |

View File

@ -14,7 +14,7 @@ impl<'a> RootModuleConfig<'a> for CMakeConfig<'a> {
fn new() -> Self {
CMakeConfig {
format: "via [$symbol$version]($style) ",
symbol: "🛆 ",
symbol: " ",
style: "bold blue",
disabled: false,
}

View File

@ -14,7 +14,7 @@ impl<'a> RootModuleConfig<'a> for ErlangConfig<'a> {
fn new() -> Self {
ErlangConfig {
format: "via [$symbol$version]($style) ",
symbol: "🖧 ",
symbol: " ",
style: "bold red",
disabled: false,
}

View File

@ -77,7 +77,7 @@ mod tests {
let dir = tempfile::tempdir()?;
File::create(dir.path().join("CMakeLists.txt"))?.sync_all()?;
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);
dir.close()
}

View File

@ -89,7 +89,7 @@ mod tests {
let dir = tempfile::tempdir()?;
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();
assert_eq!(output, expected);