diff options
author | Eyal Cherevatzki <eyal.3555@pm.me> | 2021-03-18 19:46:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-18 18:46:54 +0100 |
commit | 612cc7d27b8862cd89c323572aaeba8bb70290f4 (patch) | |
tree | a0471eee052cff7b8104f590f3b1067d4a409224 | |
parent | 3a4c9063e90e8671fb99c977f7079d980933ae07 (diff) |
refactor(dotnet): ".NET" instead of "•NET" (#2471)
* 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 <eyal@hyperguest.com>
-rw-r--r-- | docs/config/README.md | 2 | ||||
-rw-r--r-- | src/configs/dotnet.rs | 2 | ||||
-rw-r--r-- | 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() |