Class MainCommand

java.lang.Object
com.redis.riot.core.BaseCommand
com.redis.riot.core.MainCommand
All Implemented Interfaces:
IO, Callable<Integer>

public class MainCommand extends BaseCommand implements Callable<Integer>, IO
  • Constructor Details

    • MainCommand

      public MainCommand()
  • Method Details

    • call

      public Integer call() throws Exception
      Specified by:
      call in interface Callable<Integer>
      Throws:
      Exception
    • commandLine

      protected picocli.CommandLine commandLine()
    • run

      public int run(String... args)
    • executionStrategy

      protected int executionStrategy(picocli.CommandLine.ParseResult parseResult)
    • registerConverters

      protected void registerConverters(picocli.CommandLine commandLine)
    • parseDataSize

      public static org.springframework.util.unit.DataSize parseDataSize(String string)
    • getOut

      public PrintWriter getOut()
      Specified by:
      getOut in interface IO
    • setOut

      public void setOut(PrintWriter out)
      Specified by:
      setOut in interface IO
    • getErr

      public PrintWriter getErr()
      Specified by:
      getErr in interface IO
    • setErr

      public void setErr(PrintWriter err)
      Specified by:
      setErr in interface IO