Package org.jboss.as.cli.util
Class HelpFormatter
- java.lang.Object
-
- org.jboss.as.cli.util.HelpFormatter
-
public class HelpFormatter extends Object
This is a simple formatter which takes into account the current terminal width when printing text content. Specifically, if the terminal width is less than the length of the lines of content, it'll try to preserve the readability of the text by splitting/breaking the lines and adding whitespace offsets to more or less preserve the original structure of the text.- Author:
- Alexey Loubyansky
-
-
Constructor Summary
Constructors Constructor Description HelpFormatter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidformat(CommandContext ctx, BufferedReader reader)
-
-
-
Method Detail
-
format
public static void format(CommandContext ctx, BufferedReader reader) throws IOException
- Throws:
IOException
-
-