Skip to content

Commit

Permalink
fix: autocompletion for fish
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Huber committed Nov 5, 2024
1 parent 04ed619 commit 1aa027c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Command/CompletionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,13 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$shell_type = $input->getOption('shell-type') ?: $this->getShellType();

if ($input->getOption('generate-hook')) {
if ($shell_type == 'fish') {
return $this->handleFishShellCompletions($output);
if ($shell_type === 'fish') {
$this->handleFishShellCompletions($output);
return 0;
}
}

if ($shell_type == 'fish') {
if ($shell_type === 'fish') {
$command_line = $input->getOption('command-line');
$option = $input->getOption('complete-option');
$command_name =$input->getOption('complete-command');
Expand Down

0 comments on commit 1aa027c

Please sign in to comment.