# Class: CommandBuilder

## vertx-shell-js/command_builder~ CommandBuilder

#### new CommandBuilder()

A build for Vert.x Shell command.

Source:
  - vertx-shell-js/command_builder.js, line 34

### Methods

#### build(vertx) → {Command}

Build the command

##### Parameters:

Name | Type | Description
--- | --- | ---
`vertx` | Vertx | the vertx instance

Source:
  - vertx-shell-js/command_builder.js, line 81

##### 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:
  - vertx-shell-js/command_builder.js, line 64

##### 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:
  - vertx-shell-js/command_builder.js, line 46

##### Returns:

this command object

Type
  CommandBuilder