Bump version to 0.2.3 / 0.0.3
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>0.0.2</Version>
|
||||
<Version>0.0.3</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
|
||||
14
src/ConsoleApp/FileTime.ConsoleUI/InfoProviders/Version.cs
Normal file
14
src/ConsoleApp/FileTime.ConsoleUI/InfoProviders/Version.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Reflection;
|
||||
using TerminalUI.ConsoleDrivers;
|
||||
|
||||
namespace FileTime.ConsoleUI.InfoProviders;
|
||||
|
||||
public static class Version
|
||||
{
|
||||
public static void PrintVersionInfo(IConsoleDriver consoleDriver)
|
||||
{
|
||||
var version = Assembly.GetEntryAssembly()!.GetName().Version!;
|
||||
var versionString = $"{version.Major}.{version.Minor}.{version.Build}";
|
||||
consoleDriver.Write("FileTime version: " + versionString);
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,7 @@ using TerminalUI;
|
||||
using TerminalUI.Color;
|
||||
using TerminalUI.ConsoleDrivers;
|
||||
using ITheme = FileTime.ConsoleUI.App.Styling.ITheme;
|
||||
using Version = FileTime.ConsoleUI.InfoProviders.Version;
|
||||
|
||||
Console.OutputEncoding = System.Text.Encoding.UTF8;
|
||||
IConsoleDriver? driver = null;
|
||||
@@ -111,6 +112,10 @@ static bool HandleInfoProviders(string[] args, IServiceProvider serviceProvider)
|
||||
serviceProvider.GetRequiredService<IConsoleDriver>()
|
||||
)
|
||||
},
|
||||
{
|
||||
"--version",
|
||||
() => Version.PrintVersionInfo(serviceProvider.GetRequiredService<IConsoleDriver>())
|
||||
}
|
||||
};
|
||||
infoProviders.Add("--help", () => Help.PrintHelp(infoProviders.Keys));
|
||||
foreach (var infoProviderKey in infoProviders.Keys)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<TrimMode>copyused</TrimMode>
|
||||
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
||||
<ApplicationIcon>filetime.ico</ApplicationIcon>
|
||||
<Version>0.2.2</Version>
|
||||
<Version>0.2.3</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
|
||||
Reference in New Issue
Block a user