# Class: Completion

## vertx-shell-js/completion~ Completion

#### new Completion()

The completion object

Source:
  - vertx-shell-js/completion.js, line 32

### Methods

#### complete(value, terminal)

End the completion with a value that will be inserted to complete the line.

##### Parameters:

Name | Type | Description
--- | --- | ---
`value` | string | the value to complete with
`terminal` | boolean | true if the value is terminal, i.e can be further completed

Source:
  - vertx-shell-js/completion.js, line 100

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

Source:
  - vertx-shell-js/completion.js, line 86

##### Returns:

- the current line being completed as preparsed tokens
- Type
    Array.<CliToken>

#### rawLine() → {string}

Source:
  - vertx-shell-js/completion.js, line 72

##### Returns:

- the current line being completed in raw format, i.e without any char escape performed
- Type
    string

#### session() → {Session}

Source:
  - vertx-shell-js/completion.js, line 58

##### Returns:

- the shell current session, useful for accessing data like the current path for file completion, etc...
- Type
    Session

#### vertx() → {Vertx}

Source:
  - vertx-shell-js/completion.js, line 44

##### Returns:

- the current Vert.x instance
- Type
    Vertx