Files
Yi.Admin/Yi.Abp.Net8/tool/Yi.Abp.Tool/Commands/VersionCommand.cs

15 lines
487 B
C#
Raw Normal View History

2024-06-02 00:38:35 +08:00
namespace Yi.Abp.Tool.Commands
{
public class VersionCommand : ICommand
{
public List<string> CommandStrs => new List<string> { "version", "v", "-version", "-v" };
2024-06-02 13:09:25 +08:00
public Task InvokerAsync(Dictionary<string, string> options, string[] args)
2024-06-02 00:38:35 +08:00
{
var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
Console.WriteLine($"Yi-ABP TOOL {version}");
return Task.CompletedTask;
}
}
}