Skip to content

Commit d5fec40

Browse files
committed
up: dont split show group and alone commands
1 parent 59d0b61 commit d5fec40

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Decorate/ApplicationHelpTrait.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
namespace Inhere\Console\Decorate;
1111

12-
use Inhere\Console\Handler\AbstractHandler;
1312
use Inhere\Console\Console;
1413
use Inhere\Console\ConsoleEvent;
1514
use Inhere\Console\Contract\CommandInterface;
15+
use Inhere\Console\Handler\AbstractHandler;
1616
use Inhere\Console\IO\Input;
1717
use Inhere\Console\IO\Output;
1818
use Inhere\Console\Util\Show;
@@ -208,10 +208,10 @@ public function showCommandList(): void
208208
}
209209

210210
// add split title on both exists.
211-
if (!$autoComp && $hasCommand && $hasGroup) {
212-
$groupArr[] = PHP_EOL . '- <bold>Group Commands</bold>';
213-
$commandArr[] = PHP_EOL . '- <bold>Alone Commands</bold>';
214-
}
211+
// if (!$autoComp && $hasCommand && $hasGroup) {
212+
// $groupArr[] = PHP_EOL . '- <bold>Group Commands</bold>';
213+
// $commandArr[] = PHP_EOL . '- <bold>Alone Commands</bold>';
214+
// }
215215

216216
$placeholder = 'No description of the command';
217217
foreach ($groups as $name => $info) {

0 commit comments

Comments
 (0)