php/commands/src/CLI_Command.php
public function completions( $_, $assoc_args ) {
		$line  = substr( $assoc_args['line'], 0, $assoc_args['point'] );
		$compl = new \WP_CLI\Completions( $line );
		$compl->render();
	}
public function completions( $_, $assoc_args ) {
		$line  = substr( $assoc_args['line'], 0, $assoc_args['point'] );
		$compl = new \WP_CLI\Completions( $line );
		$compl->render();
	}
public function completions ( $ _ , $ assoc_args ) { $ line = substr ( $ assoc_args [ 'line' ] , 0 , $ assoc_args [ 'point' ] ) ; $ compl = new \ WP_CLI \ Completions ( $ line ) ; $ compl -> render ( ) ; }
Generate tab completion strings.

## OPTIONS

--line=<line>
: The current command line to be executed.

--point=<point>
: The index to the current cursor position relative to the beginning of the command.

## EXAMPLES

# Generate tab completion strings.
$ wp cli completions --line='wp eva' --point=100
eval
eval-file
Generate tab completion strings .