|
|
|
@ -1,5 +1,6 @@ |
|
|
|
using System; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.Extensions.Logging; |
|
|
|
using Microsoft.Extensions.Logging.Abstractions; |
|
|
|
using Volo.Abp.Cli.Args; |
|
|
|
using Volo.Abp.DependencyInjection; |
|
|
|
|
|
|
|
@ -7,13 +8,21 @@ namespace Volo.Abp.Cli.Commands |
|
|
|
{ |
|
|
|
public class HelpCommand : IConsoleCommand, ITransientDependency |
|
|
|
{ |
|
|
|
public ILogger<HelpCommand> Logger { get; set; } |
|
|
|
|
|
|
|
public HelpCommand() |
|
|
|
{ |
|
|
|
Logger = NullLogger<HelpCommand>.Instance; |
|
|
|
} |
|
|
|
|
|
|
|
public Task ExecuteAsync(CommandLineArgs commandLineArgs) |
|
|
|
{ |
|
|
|
Console.WriteLine(); |
|
|
|
Console.WriteLine("Usage:"); |
|
|
|
Console.WriteLine(); |
|
|
|
Console.WriteLine(" abp <command> <target> [options]"); |
|
|
|
Console.WriteLine(); |
|
|
|
Logger.LogInformation(""); |
|
|
|
Logger.LogInformation("Usage:"); |
|
|
|
Logger.LogInformation(""); |
|
|
|
Logger.LogInformation(" abp <command> <target> [options]"); |
|
|
|
Logger.LogInformation(""); |
|
|
|
|
|
|
|
return Task.CompletedTask; |
|
|
|
} |
|
|
|
} |
|
|
|
|