mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
Sort commands by name in help text (#134)
This commit is contained in:
@@ -367,7 +367,8 @@ internal class HelpConsoleFormatter : ConsoleFormatter
|
|||||||
{
|
{
|
||||||
var childCommandSchemas = _context
|
var childCommandSchemas = _context
|
||||||
.ApplicationSchema
|
.ApplicationSchema
|
||||||
.GetChildCommands(_context.CommandSchema.Name);
|
.GetChildCommands(_context.CommandSchema.Name)
|
||||||
|
.OrderBy(a => a.Name, StringComparer.Ordinal);
|
||||||
|
|
||||||
if (!childCommandSchemas.Any())
|
if (!childCommandSchemas.Any())
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user