From 6d4f44eb5a78413c17b584de2e770b99f08a8d5e Mon Sep 17 00:00:00 2001 From: Sebastian Schreiber Date: Sat, 2 Mar 2024 00:03:27 +0100 Subject: [PATCH] [TASK]: Hide meaningless default commands --- bin/surf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/surf b/bin/surf index 279ada9c..823a6a57 100755 --- a/bin/surf +++ b/bin/surf @@ -24,6 +24,11 @@ $kernel->boot(); $container = $kernel->getContainer(); /** @var ConsoleApplication $application */ $application = $container->get(ConsoleApplication::class); +$commandNamesToHide = ['list', 'completion', 'help']; +foreach ($commandNamesToHide as $commandNameToHide) { + $commandToHide = $application->get($commandNameToHide); + $commandToHide->setHidden(true); +} $application->add(new SelfUpdateCommand('TYPO3 Surf', $application->getVersion(), 'typo3/surf')); $application->run();