public static class AeshExample.TestConsoleCommand extends java.lang.Object implements Command
| Modifier and Type | Field and Description |
|---|---|
private boolean |
bar |
private boolean |
barbar |
private boolean |
help |
private boolean |
helpPlease |
private Shell |
shell |
| Constructor and Description |
|---|
TestConsoleCommand() |
| Modifier and Type | Method and Description |
|---|---|
private void |
display() |
CommandResult |
execute(CommandInvocation commandInvocation)
Will be executed when this command is triggered by the command line.
|
void |
processOperation(CommandInvocation invocation) |
private java.lang.String |
promptForInput(java.lang.String prompt,
java.lang.Character mask,
CommandInvocation invocation) |
private java.lang.String |
promptForUsername(CommandInvocation invocation) |
private void |
stop() |
private boolean bar
private boolean barbar
private boolean help
private boolean helpPlease
private Shell shell
public CommandResult execute(CommandInvocation commandInvocation) throws java.io.IOException, java.lang.InterruptedException
Commandprivate void display()
private void stop()
public void processOperation(CommandInvocation invocation) throws java.io.IOException, java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionprivate java.lang.String promptForUsername(CommandInvocation invocation) throws java.lang.InterruptedException
java.lang.InterruptedExceptionprivate java.lang.String promptForInput(java.lang.String prompt,
java.lang.Character mask,
CommandInvocation invocation)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedException