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.

@FunctionalInterface public static interface ICommandExecutor.ExecutionFunction
This functional interface represents a method that is used to execute a command operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(CallingContext callingContext, org.apache.commons.cli.CommandLine commandLine)
    Execute a command operation.
  • Method Details

    • execute

      void execute(@NonNull CallingContext callingContext, @NonNull org.apache.commons.cli.CommandLine commandLine) throws CommandExecutionException
      Execute a command operation.
      Parameters:
      callingContext - the context of the command execution
      commandLine - the parsed command line details
      Throws:
      CommandExecutionException - if an error occurred while executing the command operation