feat: 搭建tool

This commit is contained in:
chenchun
2024-11-05 18:50:15 +08:00
parent 9aaa88ef51
commit c944bd3b0e
11 changed files with 433 additions and 489 deletions

View File

@@ -1,14 +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, string[] args)
{
var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
Console.WriteLine($"Yi-ABP TOOL {version}");
return Task.CompletedTask;
}
}
}
// 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, string[] args)
// {
// var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
// Console.WriteLine($"Yi-ABP TOOL {version}");
// return Task.CompletedTask;
// }
// }
// }