public static class AeshExample.PromptCommand extends Object implements Command
Constructor and Description |
---|
PromptCommand() |
Modifier and Type | Method and Description |
---|---|
CommandResult |
execute(CommandInvocation commandInvocation)
Will be executed when this command is triggered by the command line.
|
void |
processOperation(CommandOperation operation) |
public CommandResult execute(CommandInvocation commandInvocation) throws CommandException, InterruptedException
Command
execute
in interface Command
commandInvocation
- invocationCommandException
- In case an exception occurs during executionInterruptedException
- In case the current thread is being
interrupted.public void processOperation(CommandOperation operation)
Copyright © 2017 JBoss by Red Hat. All rights reserved.