Package org.jboss.as.cli.impl.aesh
Class HelpSupport
- java.lang.Object
-
- org.jboss.as.cli.impl.aesh.HelpSupport
-
public class HelpSupport extends Object
Entry point for help handling. Aesh based commands have their help generated. For legacy command, static help text files are used.- Author:
- jdenise@redhat.com
-
-
Field Summary
Fields Modifier and Type Field Description static StringNULL_DESCRIPTION
-
Constructor Summary
Constructors Constructor Description HelpSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckCommand(org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> parent, org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> child)static Stringformat(CommandContext ctx, BufferedReader reader)static Class<?>getClassFromType(org.jboss.dmr.ModelType mt)static StringgetCommandHelp(org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> parser)static StringgetLegacyHelpPath(String commandName)static StringgetSubCommandHelp(String parentCommand, org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> parser)static voidprintHelp(CommandContext ctx)static StringprintHelp(CommandContext ctx, String filename)static StringprintHelp(CommandContext ctx, org.jboss.dmr.ModelNode mn, OperationRequestAddress address)
-
-
-
Field Detail
-
NULL_DESCRIPTION
public static final String NULL_DESCRIPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
printHelp
public static void printHelp(CommandContext ctx)
-
printHelp
public static String printHelp(CommandContext ctx, String filename)
-
format
public static String format(CommandContext ctx, BufferedReader reader) throws IOException
- Throws:
IOException
-
getClassFromType
public static Class<?> getClassFromType(org.jboss.dmr.ModelType mt)
-
printHelp
public static String printHelp(CommandContext ctx, org.jboss.dmr.ModelNode mn, OperationRequestAddress address)
-
getSubCommandHelp
public static String getSubCommandHelp(String parentCommand, org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> parser)
-
getCommandHelp
public static String getCommandHelp(org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> parser)
-
checkCommand
public static void checkCommand(org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> parent, org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> child) throws Exception
- Throws:
Exception
-
-