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

@@ -17,7 +17,8 @@ class Program
//args = ["new", "Acme.Book", "-t", "module", "-csf"];
//args = ["new", "Acme.Book", "-t", "module"];
//args = ["add-module", "Acme.Demo", "-s", "D:\\code\\csharp\\source\\Yi\\Yi.Abp.Net8", "-modulePath", "D:\\code\\csharp\\source\\Yi\\Yi.Abp.Net8\\module\\acme-demo"];
args = ["clear", "-path", "D:\\code\\csharp\\source\\Yi\\Yi.Abp.Net8\\src"];
// args = ["clear", "-path", "D:\\code\\csharp\\source\\Yi\\Yi.Abp.Net8\\src"];
args = ["clear","-i","888"];
#endif
try
{
@@ -32,8 +33,8 @@ class Program
//})
.UseAutofac()
.Build();
var commandSelector = host.Services.GetRequiredService<CommandSelector>();
await commandSelector.SelectorAsync(args);
var commandSelector = host.Services.GetRequiredService<CommandInvoker>();
await commandSelector.InvokerAsync(args);
}
catch (Exception ex)
{