public interface CommandInvocation
Modifier and Type | Method and Description |
---|---|
void |
executeCommand(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() |
String |
getHelpInfo(String commandName) |
CommandOperation |
getInput()
A blocking call that will return user input from the terminal
|
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(String msg)
Print a message on console
|
void |
println(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()
String getHelpInfo(String commandName)
void stop()
AeshContext getAeshContext()
CommandOperation getInput() throws InterruptedException
InterruptedException
String getInputLine() throws InterruptedException
InterruptedException
int getPid()
void putProcessInBackground()
void putProcessInForeground()
void executeCommand(String input)
input
- command inputvoid print(String msg)
msg
- void println(String msg)
msg
- Copyright © 2020 JBoss, a division of Red Hat, Inc.. All Rights Reserved.