Fix help command formatting Project: http://git-wip-us.apache.org/repos/asf/karaf/repo Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/b0e38903 Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/b0e38903 Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/b0e38903
Branch: refs/heads/karaf-3.0.x Commit: b0e38903f9d67d6938c4b4bbd9dadfc70b9be5a9 Parents: 157afc2 Author: Guillaume Nodet <[email protected]> Authored: Fri Jul 11 12:26:15 2014 +0200 Committer: Guillaume Nodet <[email protected]> Committed: Fri Jul 11 13:09:24 2014 +0200 ---------------------------------------------------------------------- .../apache/karaf/shell/help/impl/CommandListHelpProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/karaf/blob/b0e38903/shell/help/src/main/java/org/apache/karaf/shell/help/impl/CommandListHelpProvider.java ---------------------------------------------------------------------- diff --git a/shell/help/src/main/java/org/apache/karaf/shell/help/impl/CommandListHelpProvider.java b/shell/help/src/main/java/org/apache/karaf/shell/help/impl/CommandListHelpProvider.java index caf42de..1bbeaf3 100644 --- a/shell/help/src/main/java/org/apache/karaf/shell/help/impl/CommandListHelpProvider.java +++ b/shell/help/src/main/java/org/apache/karaf/shell/help/impl/CommandListHelpProvider.java @@ -117,11 +117,11 @@ public class CommandListHelpProvider implements HelpProvider { int termWidth = term != null ? term.getWidth() : 80; out.println(Ansi.ansi().a(Ansi.Attribute.INTENSITY_BOLD).a("COMMANDS").a(Ansi.Attribute.RESET)); ShellTable table = new ShellTable().noHeaders().separator(" ").size(termWidth); - table.column(new Col("Command").maxSize(35)); + table.column(new Col("Command").maxSize(64)); table.column(new Col("Description")); for (Map.Entry<String,String> entry : commands.entrySet()) { String key = NameScoping.getCommandNameWithoutGlobalPrefix(session, entry.getKey()); - table.addRow().addContent(key, entry.getValue()); + table.addRow().addContent(Ansi.ansi().a(Ansi.Attribute.INTENSITY_BOLD).a(key).a(Ansi.Attribute.RESET), entry.getValue()); } table.print(out, true); }
