mirror of
https://github.com/Llewellynvdm/starship.git
synced 2025-01-24 15:48:34 +00:00
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>
This commit is contained in:
parent
3a4c9063e9
commit
612cc7d27b
@ -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. |
|
||||
|
@ -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,
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user