Package: io.vertx.groovy.ext.shell.command

## [Groovy] Class Command

- io.vertx.groovy.ext.shell.command.Command

- A Vert.x Shell command, it can be created from any language using the CommandBuilder.command or from a Java class using Command.create

- - ### Constructor Summary

    Constructors
    Constructor and description
    `Command (Object delegate)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `CLI` | `cli()` @return Returns: the command line interface, can be null
    `void` | `complete(Completion completion)` Perform command completion, when the command is done completing it should call or )} method to signal completion is done.
    `Object` | `getDelegate()`
    `String` | `name()` @return Returns: the command name
    `void` | `process(CommandProcess process)` Process the command, when the command is done processing it should call the CommandProcess.end method.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Constructor Detail

    - #### Command(Object delegate)

  - ### Method Detail

    - #### CLI cli()

      Returns:
        the command line interface, can be null

    - #### void complete(Completion completion)

      Perform command completion, when the command is done completing it should call or )} method to signal completion is done.

      Parameters:
        `completion` - the completion object

    - #### Object getDelegate()

    - #### String name()

      Returns:
        the command name

    - #### void process(CommandProcess process)

      Process the command, when the command is done processing it should call the CommandProcess.end method.

      Parameters:
        `process` - the command process