Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CompleteCommand.php

function CompleteCommand::configure

Overrides Command::configure

File

vendor/symfony/console/Command/CompleteCommand.php, line 55

Class

CompleteCommand
Responsible for providing the values to the shell completion.

Namespace

Symfony\Component\Console\Command

Code

protected function configure() : void {
    $this->addOption('shell', 's', InputOption::VALUE_REQUIRED, 'The shell type ("' . implode('", "', array_keys($this->completionOutputs)) . '")')
        ->addOption('input', 'i', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'An array of input tokens (e.g. COMP_WORDS or argv)')
        ->addOption('current', 'c', InputOption::VALUE_REQUIRED, 'The index of the "input" array that the cursor is in (e.g. COMP_CWORD)')
        ->addOption('api-version', 'a', InputOption::VALUE_REQUIRED, 'The API version of the completion script')
        ->addOption('symfony', 'S', InputOption::VALUE_REQUIRED, 'deprecated');
}
RSS feed
Powered by Drupal