Interface ICommand


public interface ICommand
Command wrapper with collecting parameter for messages.
  • Method Details

    • runCommand

      boolean runCommand(String[] args, IMessageHandler handler)
      Run command with the given options.
      Parameters:
      args - the String[] options for the command
      handler - the IMessageHandler for all output from the command
      Returns:
      true if the command completed successfully
    • repeatCommand

      boolean repeatCommand(IMessageHandler handler)
      Rerun the command.
      Parameters:
      handler - the IMessageHandler for all output from the command
      Returns:
      true if the command completed successfully