public interface CommandInvocation
| Modifier and Type | Method and Description |
|---|---|
void |
executeCommand(java.lang.String input)
This will push the input to the input stream where aesh will
parse it and execute it as a normal "user input".
|
AeshContext |
getAeshContext()
Get AeshContext
|
CommandRegistry |
getCommandRegistry() |
ControlOperator |
getControlOperator() |
java.lang.String |
getHelpInfo(java.lang.String commandName) |
CommandOperation |
getInput()
A blocking call that will return user input from the terminal
|
java.lang.String |
getInputLine()
A blocking call that will return user input from the terminal
after the user has pressed enter.
|
int |
getPid()
The process id.
|
Prompt |
getPrompt() |
Shell |
getShell() |
void |
print(java.lang.String msg)
Print a message on console
|
void |
println(java.lang.String msg)
Print a new line with a message on console;
|
void |
putProcessInBackground()
Put the current process in the background
|
void |
putProcessInForeground()
Put the current process in the foreground
|
void |
setPrompt(Prompt prompt)
Specify the prompt
|
void |
stop()
Stop the console and end the session
|
ControlOperator getControlOperator()
CommandRegistry getCommandRegistry()
Shell getShell()
void setPrompt(Prompt prompt)
Prompt getPrompt()
java.lang.String getHelpInfo(java.lang.String commandName)
void stop()
AeshContext getAeshContext()
CommandOperation getInput() throws java.lang.InterruptedException
java.lang.InterruptedExceptionjava.lang.String getInputLine()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionint getPid()
void putProcessInBackground()
void putProcessInForeground()
void executeCommand(java.lang.String input)
input - command inputvoid print(java.lang.String msg)
msg - void println(java.lang.String msg)
msg -