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

@@ -0,0 +1,20 @@
using Microsoft.Extensions.CommandLineUtils;
namespace Yi.Abp.Tool.Commands;
public class TestCommand:ICommand
{
public string Command => "clear";
public Task CommandLineApplicationAsync(CommandLineApplication application)
{
var sss= application.Option("-i| --id|-l <ID>","内容id",CommandOptionType.SingleValue);
application.OnExecute(() =>
{
Console.WriteLine($"你好,---{sss.Value()}");
return 0;
});
return Task.CompletedTask;
}
}