new Completion()
The completion object
- Source:
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:
-
lineTokens() → {Array.<CliToken>}
-
- Source:
Returns:
-
the current line being completed as preparsed tokens
-
- Type
- Array.<CliToken>
-
rawLine() → {string}
-
- Source:
Returns:
-
the current line being completed in raw format, i.e without any char escape performed
-
- Type
- string
-
session() → {Session}
-
- Source:
Returns:
-
the shell current session, useful for accessing data like the current path for file completion, etc...
-
- Type
- Session
-
vertx() → {Vertx}
-
- Source:
Returns:
-
the current Vert.x instance
-
- Type
- Vertx