io.vertx.rxjava.ext.shell.command

## Class CommandBuilder

- java.lang.Object
- - io.vertx.rxjava.ext.shell.command.CommandBuilder

-     public class CommandBuilder
      extends Object

  A build for Vert.x Shell command.

  NOTE: This class has been automatically generated from the `original` non RX-ified interface using Vert.x codegen.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static io.vertx.lang.rx.TypeArg<CommandBuilder>` | `__TYPE_ARG`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `CommandBuilder(CommandBuilder delegate)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Command` | `build(Vertx vertx)` Build the command
    `static CommandBuilder` | `command(CLI cli)` Create a new commmand with its `CLI` descriptor.
    `static CommandBuilder` | `command(String name)` Create a new commmand builder, the command is responsible for managing the options and arguments via the `#args() arguments`.
    `CommandBuilder` | `completionHandler(Handler<Completion> handler)` Set the command completion handler, the completion handler when the user asks for contextual command line completion, usually hitting the tab key.
    `boolean` | `equals(Object o)`
    `CommandBuilder` | `getDelegate()`
    `int` | `hashCode()`
    `static CommandBuilder` | `newInstance(CommandBuilder arg)`
    `CommandBuilder` | `processHandler(Handler<CommandProcess> handler)` Set the command process handler, the process handler is called when the command is executed.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### __TYPE_ARG

          public static final io.vertx.lang.rx.TypeArg<CommandBuilder> __TYPE_ARG

  - ### Constructor Detail

    - #### CommandBuilder

          public CommandBuilder(CommandBuilder delegate)

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### getDelegate

          public CommandBuilder getDelegate()

    - #### command

          public static CommandBuilder command(String name)

      Create a new commmand builder, the command is responsible for managing the options and arguments via the `#args() arguments`.
      Parameters:
        `name` - the command name
      Returns:
        the command

    - #### command

          public static CommandBuilder command(CLI cli)

      Create a new commmand with its `CLI` descriptor. This command can then retrieve the parsed `CommandProcess.commandLine()` when it executes to know get the command arguments and options.
      Parameters:
        `cli` - the cli to use
      Returns:
        the command

    - #### processHandler

          public CommandBuilder processHandler(Handler<CommandProcess> handler)

      Set the command process handler, the process handler is called when the command is executed.
      Parameters:
        `handler` - the process handler
      Returns:
        this command object

    - #### completionHandler

          public CommandBuilder completionHandler(Handler<Completion> handler)

      Set the command completion handler, the completion handler when the user asks for contextual command line completion, usually hitting the tab key.
      Parameters:
        `handler` - the completion handler
      Returns:
        this command object

    - #### build

          public Command build(Vertx vertx)

      Build the command
      Parameters:
        `vertx` - the vertx instance
      Returns:
        the built command

    - #### newInstance

          public static CommandBuilder newInstance(CommandBuilder arg)

Copyright © 2019 Eclipse. All rights reserved.