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()
|
||||
{
|
||||
HelpCommand.PrintVersionHeader();
|
||||
|
||||
DotnetVersionFile versionFile = DotnetFiles.VersionFileObject;
|
||||
var commitSha = versionFile.CommitSha ?? "N/A";
|
||||
Reporter.Output.WriteLine();
|
||||
Reporter.Output.WriteLine("Product Information:");
|
||||
Reporter.Output.WriteLine($" Version: {Product.Version}");
|
||||
Reporter.Output.WriteLine($" Commit SHA-1 hash: {commitSha}");
|
||||
Reporter.Output.WriteLine(".NET Core SDK (reflecting any global.json):");
|
||||
Reporter.Output.WriteLine($" Version: {Product.Version}");
|
||||
Reporter.Output.WriteLine($" Commit: {commitSha}");
|
||||
Reporter.Output.WriteLine();
|
||||
Reporter.Output.WriteLine("Runtime Environment:");
|
||||
Reporter.Output.WriteLine($" OS Name: {RuntimeEnvironment.OperatingSystem}");
|
||||
|
|
|
@ -60,7 +60,7 @@ namespace Microsoft.DotNet.Tests
|
|||
[Fact]
|
||||
public void UsingDotnetForTheFirstTimeWithNonVerbsDoesNotPrintEula()
|
||||
{
|
||||
string firstTimeNonVerbUseMessage = Cli.Utils.LocalizableStrings.DotNetCommandLineTools;
|
||||
const string firstTimeNonVerbUseMessage = $"{string.NewLine}.NET Core SDK (reflecting any global.json):";
|
||||
|
||||
_firstDotnetNonVerbUseCommandResult.StdOut
|
||||
.Should()
|
||||
|
|
Loading…
Reference in a new issue