Files
Yi.Admin/Yi.Abp.Net8/tool/Yi.Abp.Tool/Commands/HelpCommand.cs

41 lines
1.4 KiB
C#
Raw Normal View History

2024-06-02 00:38:35 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Abp.Tool.Commands
{
public class HelpCommand : ICommand
{
public List<string> CommandStrs => new List<string> { "h", "help", "-h", "-help" };
2024-06-02 13:09:25 +08:00
public Task InvokerAsync(Dictionary<string, string> options, string[] args)
2024-06-02 00:38:35 +08:00
{
string? errorMsg = null;
if (options.TryGetValue("error", out _))
{
errorMsg = "您输入的命令有误,请检查,以下帮助命令提示:";
}
Console.WriteLine($"""
{errorMsg}
使:
yi-abp <command> <target> [options]
:
> v: yi-abp工具版本号
> help: ` yi-abp help <command> `
2024-06-02 17:20:38 +08:00
> new: ` yi-abp new <name> -t module -csf `
> new: ` yi-abp new <name> -csf `
2024-06-08 21:51:45 +08:00
> add-module: ` yi-abp add-module <moduleName> [-modulePath <path>] [-s <slnPath>] `
2024-06-09 00:29:53 +08:00
> clear: objbin文件夹` yi-abp clear `
2024-06-05 00:33:54 +08:00
2024-06-02 00:38:35 +08:00
""");
return Task.CompletedTask;
}
}
}