From 612cc7d27b8862cd89c323572aaeba8bb70290f4 Mon Sep 17 00:00:00 2001 From: Eyal Cherevatzki Date: Thu, 18 Mar 2021 19:46:54 +0200 Subject: =?UTF-8?q?refactor(dotnet):=20".NET"=20instead=20of=20"=E2=80=A2N?= =?UTF-8?q?ET"=20(#2471)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor(dotnet): ".NET" instead of "•NET" "•NET" looks quite weird, especially since the official writing is ".NET". * revert(docs): translated docs Co-authored-by: Eyal Cherevatzki --- docs/config/README.md | 2 +- src/configs/dotnet.rs | 2 +- src/modules/dotnet.rs | 26 +++++++++++++------------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/config/README.md b/docs/config/README.md index 48b634254..93019fc6a 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -796,7 +796,7 @@ when there is a csproj file in the current directory. | Option | Default | Description | | ------------------- | ------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- | | `format` | `"[$symbol($version )(🎯 $tfm )]($style)"` | The format for the module. | -| `symbol` | `"•NET "` | The symbol used before displaying the version of dotnet. | +| `symbol` | `".NET "` | The symbol used before displaying the version of dotnet. | | `heuristic` | `true` | Use faster version detection to keep starship snappy. | | `detect_extensions` | `["sln", "csproj", "fsproj", "xproj"]` | Which extensions should trigger this module. | | `detect_files` | `["global.json", "project.json", "Directory.Build.props", "Directory.Build.targets", "Packages.props"]` | Which filenames should trigger this module. | diff --git a/src/configs/dotnet.rs b/src/configs/dotnet.rs index aac52fee0..33118e7c9 100644 --- a/src/configs/dotnet.rs +++ b/src/configs/dotnet.rs @@ -18,7 +18,7 @@ impl<'a> Default for DotnetConfig<'a> { fn default() -> Self { DotnetConfig { format: "[$symbol($version )(🎯 $tfm )]($style)", - symbol: "•NET ", + symbol: ".NET ", style: "blue bold", heuristic: true, disabled: false, diff --git a/src/modules/dotnet.rs b/src/modules/dotnet.rs index ec80c62f8..3234114e5 100644 --- a/src/modules/dotnet.rs +++ b/src/modules/dotnet.rs @@ -370,7 +370,7 @@ mod tests { touch_path(&workspace, "Directory.Build.props", None)?; expect_output( &workspace.path(), - Some(format!("{}", Color::Blue.bold().paint("•NET v3.1.103 "))), + Some(format!("{}", Color::Blue.bold().paint(".NET v3.1.103 "))), ); workspace.close() } @@ -381,7 +381,7 @@ mod tests { touch_path(&workspace, "Directory.Build.targets", None)?; expect_output( &workspace.path(), - Some(format!("{}", Color::Blue.bold().paint("•NET v3.1.103 "))), + Some(format!("{}", Color::Blue.bold().paint(".NET v3.1.103 "))), ); workspace.close() } @@ -392,7 +392,7 @@ mod tests { touch_path(&workspace, "Packages.props", None)?; expect_output( &workspace.path(), - Some(format!("{}", Color::Blue.bold().paint("•NET v3.1.103 "))), + Some(format!("{}", Color::Blue.bold().paint(".NET v3.1.103 "))), ); workspace.close() } @@ -403,7 +403,7 @@ mod tests { touch_path(&workspace, "solution.sln", None)?; expect_output( &workspace.path(), - Some(format!("{}", Color::Blue.bold().paint("•NET v3.1.103 "))), + Some(format!("{}", Color::Blue.bold().paint(".NET v3.1.103 "))), ); workspace.close() } @@ -417,7 +417,7 @@ mod tests { &workspace.path(), Some(format!( "{}", - Color::Blue.bold().paint("•NET v3.1.103 🎯 netstandard2.0 ") + Color::Blue.bold().paint(".NET v3.1.103 🎯 netstandard2.0 ") )), ); workspace.close() @@ -429,7 +429,7 @@ mod tests { touch_path(&workspace, "project.fsproj", None)?; expect_output( &workspace.path(), - Some(format!("{}", Color::Blue.bold().paint("•NET v3.1.103 "))), + Some(format!("{}", Color::Blue.bold().paint(".NET v3.1.103 "))), ); workspace.close() } @@ -440,7 +440,7 @@ mod tests { touch_path(&workspace, "project.xproj", None)?; expect_output( &workspace.path(), - Some(format!("{}", Color::Blue.bold().paint("•NET v3.1.103 "))), + Some(format!("{}", Color::Blue.bold().paint(".NET v3.1.103 "))), ); workspace.close() } @@ -451,7 +451,7 @@ mod tests { touch_path(&workspace, "project.json", None)?; expect_output( &workspace.path(), - Some(format!("{}", Color::Blue.bold().paint("•NET v3.1.103 "))), + Some(format!("{}", Color::Blue.bold().paint(".NET v3.1.103 "))), ); workspace.close() } @@ -463,7 +463,7 @@ mod tests { touch_path(&workspace, "global.json", Some(&global_json))?; expect_output( &workspace.path(), - Some(format!("{}", Color::Blue.bold().paint("•NET v1.2.3 "))), + Some(format!("{}", Color::Blue.bold().paint(".NET v1.2.3 "))), ); workspace.close() } @@ -479,7 +479,7 @@ mod tests { &workspace.path().join("project"), Some(format!( "{}", - Color::Blue.bold().paint("•NET v1.2.3 🎯 netstandard2.0 ") + Color::Blue.bold().paint(".NET v1.2.3 🎯 netstandard2.0 ") )), ); workspace.close() @@ -500,7 +500,7 @@ mod tests { &workspace.path().join("deep/path/to/project"), Some(format!( "{}", - Color::Blue.bold().paint("•NET v1.2.3 🎯 netstandard2.0 ") + Color::Blue.bold().paint(".NET v1.2.3 🎯 netstandard2.0 ") )), ); workspace.close() @@ -515,7 +515,7 @@ mod tests { workspace.path(), Some(format!( "{}", - Color::Blue.bold().paint("•NET v3.1.103 🎯 netstandard2.0 ") + Color::Blue.bold().paint(".NET v3.1.103 🎯 netstandard2.0 ") )), ); workspace.close() @@ -532,7 +532,7 @@ mod tests { "{}", Color::Blue .bold() - .paint("•NET v3.1.103 🎯 netstandard2.0;net461 ") + .paint(".NET v3.1.103 🎯 netstandard2.0;net461 ") )), ); workspace.close() -- cgit v1.2.3