Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed May 30, 2024
1 parent 2f472ab commit fd6f7bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Actions/CompleteConsoleCommandNames.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ public function complete(ConsoleArgumentBag $argumentBag, int $current): array
$completions = [];

foreach ($this->consoleConfig->commands as $name => $definition) {
if ($definition->hidden) {
continue;
}

if (! str_starts_with($name, $currentCommandName)) {
continue;
}
Expand Down
2 changes: 2 additions & 0 deletions src/completion.sh → src/complete.zsh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Forked from https://github.com/symfony/console/tree/7.0/Resources

#compdef tempest

# This file is part of the Symfony package.
Expand Down

0 comments on commit fd6f7bf

Please sign in to comment.