From 99bb7a728a391d7231fba01d68cb569225b2eb35 Mon Sep 17 00:00:00 2001 From: Brandon Date: Sun, 26 Jan 2025 08:25:58 -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?= 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());