Interface CommandExecution

All Known Implementing Classes:
CommandExecution.DefaultCommandExecution

public interface CommandExecution
Interface to evaluate a result from a command with an arguments.
  • Method Details

    • evaluate

      Object evaluate(String[] args)
      Evaluate a command with a given arguments.
      Parameters:
      args - the command args
      Returns:
      evaluated execution
    • of

      static CommandExecution of(List<? extends org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> resolvers)
      Gets an instance of a default CommandExecution.
      Parameters:
      resolvers - the handler method argument resolvers
      Returns:
      default command execution
    • of

      static CommandExecution of(List<? extends org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> resolvers, jakarta.validation.Validator validator, org.jline.terminal.Terminal terminal, org.springframework.core.convert.ConversionService conversionService)
      Gets an instance of a default CommandExecution.
      Parameters:
      resolvers - the handler method argument resolvers
      validator - the validator
      terminal - the terminal
      conversionService - the conversion services
      Returns:
      default command execution
    • of

      static CommandExecution of(List<? extends org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> resolvers, jakarta.validation.Validator validator, org.jline.terminal.Terminal terminal, org.springframework.core.convert.ConversionService conversionService, CommandCatalog commandCatalog)
      Gets an instance of a default CommandExecution.
      Parameters:
      resolvers - the handler method argument resolvers
      validator - the validator
      terminal - the terminal
      conversionService - the conversion services
      Returns:
      default command execution