public interface CommandRegistry
Modifier and Type | Method and Description |
---|---|
void |
completeCommandName(CompleteOperation completeOperation)
Based on input, find all commands that match or partly match
|
Set<String> |
getAllCommandNames() |
List<CommandLineParser<?>> |
getChildCommandParsers(String parent) |
CommandContainer |
getCommand(String name,
String line) |
CommandContainer |
getCommandByAlias(String alias) |
void |
removeCommand(String name) |
CommandContainer getCommand(String name, String line) throws CommandNotFoundException
name
- command nameline
- current terminal buffer lineCommandNotFoundException
List<CommandLineParser<?>> getChildCommandParsers(String parent) throws CommandNotFoundException
parent
- The name of the parent commandCommandNotFoundException
CommandContainer getCommandByAlias(String alias) throws CommandNotFoundException
alias
- command aliasCommandNotFoundException
void completeCommandName(CompleteOperation completeOperation)
completeOperation@return
- matching/partly patching commandsvoid removeCommand(String name)
Copyright © 2017 JBoss by Red Hat. All rights reserved.