Package org.jboss.as.cli.impl.aesh
Class AeshCommands
- java.lang.Object
-
- org.jboss.as.cli.impl.aesh.AeshCommands
-
public class AeshCommands extends Object
This class is the entry point to interact with the Aesh Command Runtime.- Author:
- jdenise@redhat.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAeshCommands.CLIExecution
-
Constructor Summary
Constructors Constructor Description AeshCommands(CommandContextImpl ctx, OperationCommandContainer op)AeshCommands(CommandContextImpl ctx, ReadlineConsole console, OperationCommandContainer op)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomplete(org.aesh.complete.AeshCompleteOperation co)CommandLineCompletergetCommandCompleter()Set<String>getPlugins()CLICommandRegistrygetRegistry()static booleanisAeshExtension(org.aesh.command.Command<?> command)CommandExecutor.ExecutableBuildernewExecutableBuilder(AeshCommands.CLIExecution exe)List<AeshCommands.CLIExecution>newExecutions(ParsedCommandLine line)voidregisterExtraCommands()voidsetLegacyCommandCompleter(CLICommandCompleter.Completer completer)
-
-
-
Constructor Detail
-
AeshCommands
public AeshCommands(CommandContextImpl ctx, OperationCommandContainer op) throws CliInitializationException
- Throws:
CliInitializationException
-
AeshCommands
public AeshCommands(CommandContextImpl ctx, ReadlineConsole console, OperationCommandContainer op) throws CliInitializationException
- Throws:
CliInitializationException
-
-
Method Detail
-
setLegacyCommandCompleter
public void setLegacyCommandCompleter(CLICommandCompleter.Completer completer)
-
getCommandCompleter
public CommandLineCompleter getCommandCompleter()
-
getRegistry
public CLICommandRegistry getRegistry()
-
complete
public void complete(org.aesh.complete.AeshCompleteOperation co)
-
newExecutions
public List<AeshCommands.CLIExecution> newExecutions(ParsedCommandLine line) throws CommandFormatException, IOException, org.aesh.command.CommandNotFoundException
- Throws:
CommandFormatExceptionIOExceptionorg.aesh.command.CommandNotFoundException
-
newExecutableBuilder
public CommandExecutor.ExecutableBuilder newExecutableBuilder(AeshCommands.CLIExecution exe)
-
registerExtraCommands
public void registerExtraCommands() throws CommandLineException, org.aesh.command.parser.CommandLineParserException- Throws:
CommandLineExceptionorg.aesh.command.parser.CommandLineParserException
-
isAeshExtension
public static boolean isAeshExtension(org.aesh.command.Command<?> command)
-
-