From 3a741d5c1ff5d9438bee514fe2e3186e7d341727 Mon Sep 17 00:00:00 2001 From: Todd Lisonbee Date: Mon, 10 Jul 2017 15:48:35 -0700 Subject: [PATCH] Sorting help by command name (it was kind of random before) (#54) --- src/main/java/com/nike/cerberus/cli/CerberusHelp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/nike/cerberus/cli/CerberusHelp.java b/src/main/java/com/nike/cerberus/cli/CerberusHelp.java index 838721f4..2327f1fa 100644 --- a/src/main/java/com/nike/cerberus/cli/CerberusHelp.java +++ b/src/main/java/com/nike/cerberus/cli/CerberusHelp.java @@ -87,7 +87,7 @@ private void printCustomUsage() { private void printCommands() { System.out.println("Commands, use cerberus [-h, --help] [command name] for more info:"); - commander.getCommands().keySet().forEach(command -> { + commander.getCommands().keySet().stream().sorted().forEach(command -> { String msg = String.format(" %s, %s", Chalk.on(command).green().bold().toString(), commander.getCommandDescription(command));