Skip to content

Commit

Permalink
Retuning all command names in alphabetical order
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Oct 15, 2013
1 parent 4cf9b79 commit 91a6eb5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.jboss.forge.addon.shell;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;

import javax.enterprise.event.Observes;
import javax.inject.Inject;
Expand Down Expand Up @@ -63,7 +63,7 @@ public UICommand lookup(Class<? extends UICommand> type)

public Set<String> getAllCommandNames(ShellContext shellContext)
{
Set<String> commands = new HashSet<String>();
Set<String> commands = new TreeSet<String>();
for (UICommand cmd : Commands.getEnabledCommands(getAllCommands(), shellContext))
{
commands.add(getCommandName(shellContext, cmd));
Expand Down

0 comments on commit 91a6eb5

Please sign in to comment.