function BashCompletionOutput::write
Overrides CompletionOutputInterface::write
File
-
vendor/
symfony/ console/ Completion/ Output/ BashCompletionOutput.php, line 22
Class
- BashCompletionOutput
- @author Wouter de Jong <wouter@wouterj.nl>
Namespace
Symfony\Component\Console\Completion\OutputCode
public function write(CompletionSuggestions $suggestions, OutputInterface $output) : void {
$values = $suggestions->getValueSuggestions();
foreach ($suggestions->getOptionSuggestions() as $option) {
$values[] = '--' . $option->getName();
if ($option->isNegatable()) {
$values[] = '--no-' . $option->getName();
}
}
$output->writeln(implode("\n", $values));
}