feat: 新增yi-abp工具
This commit is contained in:
14
Yi.Abp.Net8/tool/Yi.Abp.Tool/Commands/VersionCommand.cs
Normal file
14
Yi.Abp.Net8/tool/Yi.Abp.Tool/Commands/VersionCommand.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace Yi.Abp.Tool.Commands
|
||||
{
|
||||
public class VersionCommand : ICommand
|
||||
{
|
||||
public List<string> CommandStrs => new List<string> { "version", "v", "-version", "-v" };
|
||||
|
||||
public Task InvokerAsync(Dictionary<string, string> options)
|
||||
{
|
||||
var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
|
||||
Console.WriteLine($"Yi-ABP TOOL {version}");
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user