Skip to content

Commit

Permalink
up: dont split show group and alone commands
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed May 12, 2022
1 parent 59d0b61 commit d5fec40
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Decorate/ApplicationHelpTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

namespace Inhere\Console\Decorate;

use Inhere\Console\Handler\AbstractHandler;
use Inhere\Console\Console;
use Inhere\Console\ConsoleEvent;
use Inhere\Console\Contract\CommandInterface;
use Inhere\Console\Handler\AbstractHandler;
use Inhere\Console\IO\Input;
use Inhere\Console\IO\Output;
use Inhere\Console\Util\Show;
Expand Down Expand Up @@ -208,10 +208,10 @@ public function showCommandList(): void
}

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

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

0 comments on commit d5fec40

Please sign in to comment.