# Class: CommandRegistry

## vertx-shell-js/command_registry~ CommandRegistry

#### new CommandRegistry()

  A registry that contains the commands known by a shell.
  Source:
    - command_registry.js, line 35

### Methods

#### complete(completion)

  Perform completion, the completion argument will be notified of the completion progress.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `completion` | Completion | the completion object

  Source:
    - command_registry.js, line 88

#### createProcess(line, handler)

  Try to create a process from the command line tokens.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `line` | Array.<CliToken> | the command line tokens
  `handler` | function | the handler to be notified about process creation

  Source:
    - command_registry.js, line 61

#### registerCommand(command, doneHandler)

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `command` | Command |
  `doneHandler` | function |

  Source:
    - command_registry.js, line 101

#### registrations() → {Array.<CommandRegistration>}

  Source:
    - command_registry.js, line 47

  ##### Returns:

  - the current command registrations
  - Type
      Array.<CommandRegistration>

#### unregisterCommand(commandName, doneHandler)

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `commandName` | string |
  `doneHandler` | function |

  Source:
    - command_registry.js, line 122