# Class: CommandProcess

## vertx-shell-js/command_process~ CommandProcess

#### new CommandProcess()

  The command process provides interaction with the process of the command provided by Vert.x Shell.
  Source:
    - command_process.js, line 35

### Methods

#### args() → {Array.<string>}

  Source:
    - command_process.js, line 76

  ##### Returns:

  - the actual string arguments of the command
  - Type
      Array.<string>

#### argsTokens() → {Array.<CliToken>}

  Source:
    - command_process.js, line 62

  ##### Returns:

  - the unparsed arguments tokens
  - Type
      Array.<CliToken>

#### commandLine() → {CommandLine}

  Source:
    - command_process.js, line 90

  ##### Returns:

  - the command line object or null
  - Type
      CommandLine

#### end(status)

  End the process.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `status` | number | the exit status.

  Source:
    - command_process.js, line 160

#### eventHandler(eventType, handler) → {CommandProcess}

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `eventType` | Object |
  `handler` | function |

  Source:
    - command_process.js, line 132

  ##### Returns:

  Type
    CommandProcess

#### session() → {Session}

  Source:
    - command_process.js, line 104

  ##### Returns:

  - the shell session
  - Type
      Session

#### setStdin(stdin) → {CommandProcess}

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `stdin` | Stream |

  Source:
    - command_process.js, line 117

  ##### Returns:

  Type
    CommandProcess

#### vertx() → {Vertx}

  Source:
    - command_process.js, line 48

  ##### Returns:

  - the current Vert.x instance
  - Type
      Vertx

#### write(text) → {CommandProcess}

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `text` | string |

  Source:
    - command_process.js, line 146

  ##### Returns:

  Type
    CommandProcess