feat: 完成tool

This commit is contained in:
chenchun
2024-11-08 12:35:54 +08:00
parent e832921edf
commit f3c5d0862b
7 changed files with 21 additions and 30 deletions

View File

@@ -10,19 +10,17 @@ namespace Yi.Abp.Tool.Commands
{
public class CloneCommand : ICommand
{
public List<string> CommandStrs => new List<string> { "clone"};
private const string cloneAddress= "https://gitee.com/ccnetcore/Yi";
private const string CloneAddress= "https://gitee.com/ccnetcore/Yi";
public string Command => "clone";
public string? Description => "克隆最新YiFramework源代码";
public string? Description => "克隆最新YiFramework源代码需依赖git";
public void CommandLineApplication(CommandLineApplication application)
{
application.OnExecute(() =>
{
StartCmd($"git clone {cloneAddress}");
StartCmd($"git clone {CloneAddress}");
return 0;
});
}