Completion

The completion object

package

Default

Methods

__construct

__construct() 

End the completion with a list of candidates, these candidates will be displayed by the shell on the console.

complete( $arg0,  $arg1 = null) : void

param $candidates [array] the candidates complete($candidates)

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

param $value [string] the value to complete with param $terminal [boolean] true if the value is terminal, i.e can be further completed complete($value, $terminal)

Arguments

$arg0

string | array

$arg1

boolean

lineTokens

lineTokens() : array

Response

array

the current line being completed as preparsed tokens

rawLine

rawLine() : string

Response

string

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

session

session() : \io\vertx\jphp\ext\shell\session\Session

Response

\io\vertx\jphp\ext\shell\session\Session

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

vertx

vertx() : \io\vertx\jphp\core\Vertx

Response

\io\vertx\jphp\core\Vertx

the current Vert.x instance