Skip to content

Commit

Permalink
🩹 Fix command aliases showing up as duplicate commands in the list …
Browse files Browse the repository at this point in the history
…command
  • Loading branch information
Log1x committed Jan 26, 2025
1 parent ecdce91 commit 99bb7a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Roots/Acorn/Console/Commands/SummaryCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ protected function commands(OutputInterface $output)

$namespaces = collect($this->getApplication()->all())
->filter(fn ($command) => ! $command->isHidden())
->unique(fn ($command) => $command->getName())
->groupBy(function ($command) {
$nameParts = explode(':', $name = $command->getName());

Expand Down

0 comments on commit 99bb7a7

Please sign in to comment.