class BashCompletionOutput
@author Wouter de Jong <wouter@wouterj.nl>
Hierarchy
- class \Symfony\Component\Console\Completion\Output\BashCompletionOutput implements \Symfony\Component\Console\Completion\Output\CompletionOutputInterface
Expanded class hierarchy of BashCompletionOutput
1 file declares its use of BashCompletionOutput
- CompleteCommand.php in vendor/
symfony/ console/ Command/ CompleteCommand.php
File
-
vendor/
symfony/ console/ Completion/ Output/ BashCompletionOutput.php, line 20
Namespace
Symfony\Component\Console\Completion\OutputView source
class BashCompletionOutput implements CompletionOutputInterface {
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));
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
BashCompletionOutput::write | public | function | Overrides CompletionOutputInterface::write |