Interface ICommandExecutor.ExecutionFunction
- Enclosing interface:
- ICommandExecutor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This functional interface represents a method that is used to execute a
command operation.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine commandLine) Execute a command operation.
-
Method Details
-
execute
void execute(@NonNull CLIProcessor.CallingContext callingContext, @NonNull org.apache.commons.cli.CommandLine commandLine) throws CommandExecutionException Execute a command operation.- Parameters:
callingContext
- the context of the command executioncommandLine
- the parsed command line details- Throws:
CommandExecutionException
- if an error occurred while executing the command operation
-