# Class: CommandResolver

## vertx-shell-js/command_resolver~ CommandResolver

#### new CommandResolver()

A resolver for commands, so the shell can discover commands.

Source:
  - vertx-shell-js/command_resolver.js, line 31

### Methods

#### commands() → {Array.<Command>}

Source:
  - vertx-shell-js/command_resolver.js, line 43

##### Returns:

- the current commands
- Type
    Array.<Command>

#### getCommand(name) → {Command}

Returns a single command by its name.

##### Parameters:

Name | Type | Description
--- | --- | ---
`name` | string | the command name

Source:
  - vertx-shell-js/command_resolver.js, line 57

##### Returns:

the commad or null

Type
  Command