CLI_Command::completions PHP Метод

completions() публичный Метод

## OPTIONS --line= : The current command line to be executed. --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
public completions ( $_, $assoc_args )
    public function completions($_, $assoc_args)
    {
        $line = substr($assoc_args['line'], 0, $assoc_args['point']);
        $compl = new \WP_CLI\Completions($line);
        $compl->render();
    }