Skip to content

Commit

Permalink
[TASK]: Hide meaningless default commands
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbelasichon committed Mar 17, 2024
1 parent 1d75331 commit 6d4f44e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/surf
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 6d4f44e

Please sign in to comment.