|
|
|
@ -13,15 +13,15 @@ namespace Volo.Abp.Cli.Commands |
|
|
|
public class HelpCommand : IConsoleCommand, ITransientDependency |
|
|
|
{ |
|
|
|
public ILogger<HelpCommand> Logger { get; set; } |
|
|
|
protected CliOptions CliOptions { get; } |
|
|
|
protected AbpCliOptions AbpCliOptions { get; } |
|
|
|
protected IHybridServiceScopeFactory ServiceScopeFactory { get; } |
|
|
|
|
|
|
|
public HelpCommand(IOptions<CliOptions> cliOptions, |
|
|
|
public HelpCommand(IOptions<AbpCliOptions> cliOptions, |
|
|
|
IHybridServiceScopeFactory serviceScopeFactory) |
|
|
|
{ |
|
|
|
ServiceScopeFactory = serviceScopeFactory; |
|
|
|
Logger = NullLogger<HelpCommand>.Instance; |
|
|
|
CliOptions = cliOptions.Value; |
|
|
|
AbpCliOptions = cliOptions.Value; |
|
|
|
} |
|
|
|
|
|
|
|
public async Task ExecuteAsync(CommandLineArgs commandLineArgs) |
|
|
|
@ -32,7 +32,7 @@ namespace Volo.Abp.Cli.Commands |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
var commandType = CliOptions.Commands[commandLineArgs.Target]; |
|
|
|
var commandType = AbpCliOptions.Commands[commandLineArgs.Target]; |
|
|
|
|
|
|
|
using (var scope = ServiceScopeFactory.CreateScope()) |
|
|
|
{ |
|
|
|
@ -53,7 +53,7 @@ namespace Volo.Abp.Cli.Commands |
|
|
|
sb.AppendLine("Command List:"); |
|
|
|
sb.AppendLine(""); |
|
|
|
|
|
|
|
foreach (var command in CliOptions.Commands.ToArray()) |
|
|
|
foreach (var command in AbpCliOptions.Commands.ToArray()) |
|
|
|
{ |
|
|
|
string shortDescription; |
|
|
|
|
|
|
|
|