# Class: CommandBuilder

## vertx-shell-js/command_builder~ CommandBuilder

#### new CommandBuilder()

  A build for Vert.x Shell command.
  Source:
    - command_builder.js, line 33

### Methods

#### build() → {Command}

  Build the command
  Source:
    - command_builder.js, line 80

  ##### Returns:

  the built command
  Type
    Command

#### completionHandler(handler) → {CommandBuilder}

  Set the command completion handler, the completion handler when the user asks for contextual command line completion, usually hitting the tab key.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `handler` | function | the completion handler

  Source:
    - command_builder.js, line 63

  ##### Returns:

  this command object
  Type
    CommandBuilder

#### processHandler(handler) → {CommandBuilder}

  Set the command process handler, the process handler is called when the command is executed.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `handler` | function | the process handler

  Source:
    - command_builder.js, line 45

  ##### Returns:

  this command object
  Type
    CommandBuilder