From 411892a735ba87057d9654f3d156df4d835b5177 Mon Sep 17 00:00:00 2001 From: Brandon Date: Sun, 26 Jan 2025 08:38:17 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20command=20aliases=20showin?= =?UTF-8?q?g=20up=20as=20duplicate=20commands=20in=20the=20`list`=20comman?= =?UTF-8?q?d=20(#427)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Roots/Acorn/Console/Commands/SummaryCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Roots/Acorn/Console/Commands/SummaryCommand.php b/src/Roots/Acorn/Console/Commands/SummaryCommand.php index 2f8ec5e4..c57d6eed 100644 --- a/src/Roots/Acorn/Console/Commands/SummaryCommand.php +++ b/src/Roots/Acorn/Console/Commands/SummaryCommand.php @@ -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());