Browse Source
Merge pull request #22636 from abpframework/cli-command
Sort ABP CLI commands in HelpCommand
pull/22637/head
maliming
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/HelpCommand.cs
|
|
|
@ -68,7 +68,7 @@ public class HelpCommand : IConsoleCommand, ITransientDependency |
|
|
|
sb.AppendLine("Command List:"); |
|
|
|
sb.AppendLine(""); |
|
|
|
|
|
|
|
foreach (var command in AbpCliOptions.Commands.ToArray().Where(NotHiddenFromCommandList)) |
|
|
|
foreach (var command in AbpCliOptions.Commands.ToArray().Where(NotHiddenFromCommandList).OrderBy(x => x.Key)) |
|
|
|
{ |
|
|
|
var method = command.Value.GetMethod("GetShortDescription", BindingFlags.Static | BindingFlags.Public); |
|
|
|
if (method == null) |
|
|
|
|