We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fe005e commit 8b9ec23Copy full SHA for 8b9ec23
src/Console/Command/BashCompletionCommand.php
@@ -44,7 +44,13 @@ protected function configure()
44
protected function execute(InputInterface $input, OutputInterface $output)
45
{
46
$description = new ApplicationDescription($this->getApplication());
47
- $this->commandCollection->setItems($description->getCommands());
+ $commands = $description->getCommands();
48
+ foreach ($commands as $command) {
49
+ if ($command->getName() == self::COMMAND_NAME) {
50
+ continue;
51
+ }
52
+ $this->commandCollection->add($command);
53
54
$result = $this->bashCompletion->generateCompletionList(
55
$input->getArgument(self::INPUT_ARG_NAME)
56
);
0 commit comments