Class: CommandBuilder

vertx-shell-js/command_builder~ CommandBuilder

new CommandBuilder()

A build for Vert.x Shell command.
Source:

Methods

build(vertx) → {Command}

Build the command
Parameters:
Name Type Description
vertx Vertx the vertx instance
Source:
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:
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:
Returns:
this command object
Type
CommandBuilder