# Class: Completion

## vertx-shell-js/completion~ Completion

#### new Completion()

  The completion object
  Source:
    - 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:
    - completion.js, line 100

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

  Source:
    - completion.js, line 86

  ##### Returns:

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

#### rawLine() → {string}

  Source:
    - 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:
    - 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:
    - completion.js, line 44

  ##### Returns:

  - the current Vert.x instance
  - Type
      Vertx