Updating the dotnet --info message.
This commit is contained in:
parent
65a761ada8
commit
b8685bebb9
2 changed files with 4 additions and 6 deletions
|
@ -260,14 +260,12 @@ namespace Microsoft.DotNet.Cli
|
||||||
|
|
||||||
private static void PrintInfo()
|
private static void PrintInfo()
|
||||||
{
|
{
|
||||||
HelpCommand.PrintVersionHeader();
|
|
||||||
|
|
||||||
DotnetVersionFile versionFile = DotnetFiles.VersionFileObject;
|
DotnetVersionFile versionFile = DotnetFiles.VersionFileObject;
|
||||||
var commitSha = versionFile.CommitSha ?? "N/A";
|
var commitSha = versionFile.CommitSha ?? "N/A";
|
||||||
Reporter.Output.WriteLine();
|
Reporter.Output.WriteLine();
|
||||||
Reporter.Output.WriteLine("Product Information:");
|
Reporter.Output.WriteLine(".NET Core SDK (reflecting any global.json):");
|
||||||
Reporter.Output.WriteLine($" Version: {Product.Version}");
|
Reporter.Output.WriteLine($" Version: {Product.Version}");
|
||||||
Reporter.Output.WriteLine($" Commit SHA-1 hash: {commitSha}");
|
Reporter.Output.WriteLine($" Commit: {commitSha}");
|
||||||
Reporter.Output.WriteLine();
|
Reporter.Output.WriteLine();
|
||||||
Reporter.Output.WriteLine("Runtime Environment:");
|
Reporter.Output.WriteLine("Runtime Environment:");
|
||||||
Reporter.Output.WriteLine($" OS Name: {RuntimeEnvironment.OperatingSystem}");
|
Reporter.Output.WriteLine($" OS Name: {RuntimeEnvironment.OperatingSystem}");
|
||||||
|
|
|
@ -60,7 +60,7 @@ namespace Microsoft.DotNet.Tests
|
||||||
[Fact]
|
[Fact]
|
||||||
public void UsingDotnetForTheFirstTimeWithNonVerbsDoesNotPrintEula()
|
public void UsingDotnetForTheFirstTimeWithNonVerbsDoesNotPrintEula()
|
||||||
{
|
{
|
||||||
string firstTimeNonVerbUseMessage = Cli.Utils.LocalizableStrings.DotNetCommandLineTools;
|
const string firstTimeNonVerbUseMessage = $"{string.NewLine}.NET Core SDK (reflecting any global.json):";
|
||||||
|
|
||||||
_firstDotnetNonVerbUseCommandResult.StdOut
|
_firstDotnetNonVerbUseCommandResult.StdOut
|
||||||
.Should()
|
.Should()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue