Updating the dotnet --info message.

This commit is contained in:
Livar Cunha 2018-03-07 09:40:06 -08:00
parent 65a761ada8
commit b8685bebb9
2 changed files with 4 additions and 6 deletions

View file

@ -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}");

View file

@ -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()