Interface ICommandExecutor

All Known Implementing Classes:
AbstractCommandExecutor

public interface ICommandExecutor
An abstract base class that implements the ICommandExecutor interface, providing common functionality for command execution implementations. Concrete subclasses must implement the execute() method to define specific command behavior.
  • Method Details

    • execute

      void execute() throws CommandExecutionException
      Execute the command operation.
      Throws:
      CommandExecutionException - if an error occurred while executing the command operation
    • using

      @NonNull static ICommandExecutor using(@NonNull CLIProcessor.CallingContext callingContext, @NonNull org.apache.commons.cli.CommandLine commandLine, @NonNull ICommandExecutor.ExecutionFunction function)
      Create a new command executor.
      Parameters:
      callingContext - the context of the command execution
      commandLine - the parsed command line details
      function - a function that accepts a calling context and command line information
      Returns:
      the executor instance