This commit is contained in:
Jackson Isaac 2018-10-05 00:41:27 +05:30 коммит произвёл Louis DeJardin
Родитель 635e6a4113
Коммит b6b81267c7
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -3,6 +3,7 @@
using System;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using Microsoft.Atlas.CommandLine.Accounts;
using Microsoft.Atlas.CommandLine.Blueprints;
@ -33,9 +34,13 @@ namespace Microsoft.Atlas.CommandLine
Console.SetOut(secretTracker.FilterTextWriter(new ColorConsoleWriter(ColorConsole.GetOutput())));
Console.SetError(secretTracker.FilterTextWriter(new ColorConsoleWriter(ColorConsole.GetError())));
var attributes = typeof(Program).GetTypeInfo().Assembly.GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute));
var assemblyVersionAttribute = attributes.SingleOrDefault() as AssemblyInformationalVersionAttribute;
var console = services.GetRequiredService<IConsole>();
console.WriteLine("Atlas".Color(ConsoleColor.Cyan));
var consoleTitle = $"Atlas version {assemblyVersionAttribute?.InformationalVersion}";
console.WriteLine(consoleTitle.Color(ConsoleColor.Cyan));
var app = services.GetRequiredService<CommandLineApplicationServices>();