Package org.jboss.as.cli.impl.aesh
Class CLICommandContainer
- java.lang.Object
-
- org.aesh.command.container.DefaultCommandContainer<CLICommandInvocation>
-
- org.jboss.as.cli.impl.aesh.CLICommandContainer
-
- All Implemented Interfaces:
AutoCloseable,org.aesh.command.container.CommandContainer<CLICommandInvocation>
public class CLICommandContainer extends org.aesh.command.container.DefaultCommandContainer<CLICommandInvocation>
All registered commands are Wrapped into instance of this class in order to print help the CLI way.- Author:
- jfdenise
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCLICommandContainer.CLICommandParser
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.aesh.command.container.CommandContainerResultexecuteCommand(org.aesh.parser.ParsedLine line, org.aesh.command.invocation.InvocationProviders invocationProviders, org.aesh.readline.AeshContext aeshContext, CLICommandInvocation commandInvocation)StringgetBuildErrorMessage()org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>getParser()org.aesh.command.container.CommandContainergetWrappedContainer()booleanhaveBuildError()StringprintHelp(String childCommandName)org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>wrapParser(org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> p)
-
-
-
Method Detail
-
getParser
public org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> getParser()
-
haveBuildError
public boolean haveBuildError()
-
getBuildErrorMessage
public String getBuildErrorMessage()
-
printHelp
public String printHelp(String childCommandName)
- Specified by:
printHelpin interfaceorg.aesh.command.container.CommandContainer<CLICommandInvocation>- Overrides:
printHelpin classorg.aesh.command.container.DefaultCommandContainer<CLICommandInvocation>
-
executeCommand
public org.aesh.command.container.CommandContainerResult executeCommand(org.aesh.parser.ParsedLine line, org.aesh.command.invocation.InvocationProviders invocationProviders, org.aesh.readline.AeshContext aeshContext, CLICommandInvocation commandInvocation) throws org.aesh.command.parser.CommandLineParserException, org.aesh.command.validator.OptionValidatorException, org.aesh.command.validator.CommandValidatorException, org.aesh.command.CommandException, InterruptedException- Specified by:
executeCommandin interfaceorg.aesh.command.container.CommandContainer<CLICommandInvocation>- Overrides:
executeCommandin classorg.aesh.command.container.DefaultCommandContainer<CLICommandInvocation>- Throws:
org.aesh.command.parser.CommandLineParserExceptionorg.aesh.command.validator.OptionValidatorExceptionorg.aesh.command.validator.CommandValidatorExceptionorg.aesh.command.CommandExceptionInterruptedException
-
getWrappedContainer
public org.aesh.command.container.CommandContainer getWrappedContainer()
-
wrapParser
public org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> wrapParser(org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> p)
-
-