Class MultiCommand

java.lang.Object
org.elasticsearch.cli.Command
org.elasticsearch.cli.MultiCommand
All Implemented Interfaces:
Closeable, AutoCloseable

public class MultiCommand extends Command
A cli tool which is made up of multiple subcommands.
  • Field Details

  • Constructor Details

    • MultiCommand

      public MultiCommand(String description, Runnable beforeMain)
      Construct the multi-command with the specified command description and runnable to execute before main is invoked.
      Parameters:
      description - the multi-command description
      beforeMain - the before-main runnable
  • Method Details