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

@@ -3,21 +3,16 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.CommandLineUtils;
using Volo.Abp.DependencyInjection;
namespace Yi.Abp.Tool
{
public interface ICommand:ITransientDependency
public interface ICommand:ISingletonDependency
{
/// <summary>
/// 命令串
/// </summary>
public List<string> CommandStrs { get; }
public string Command { get; }
Task CommandLineApplicationAsync(CommandLineApplication application);
/// <summary>
/// 执行
/// </summary>
/// <returns></returns>
public Task InvokerAsync(Dictionary<string,string> options, string[] args);
}
}