src/Valkyrja/Console/Commands/CommandsListCommand.php
protected function commandSection(Command $command, string &$previousSection): void
    {
        $parts          = explode(':', $command->getName());
        $commandName    = $parts[1] ?? null;
        $currentSection = $commandName ? $parts[0] : 'global';

        if ($previousSection !== $currentSection) {
            output()->formatter()->cyan();
            output()->writeMessage(static::TAB);
            output()->writeMessage($currentSection, true);

            $previousSection = $currentSection;
        }
    }
protected function commandSection(Command $command, string &$previousSection): void
    {
        $parts          = explode(':', $command->getName());
        $commandName    = $parts[1] ?? null;
        $currentSection = $commandName ? $parts[0] : 'global';

        if ($previousSection !== $currentSection) {
            output()->formatter()->cyan();
            output()->writeMessage(static::TAB);
            output()->writeMessage($currentSection, true);

            $previousSection = $currentSection;
        }
    }
The command section.

@param Command $command         The current command
@param string  $previousSection The previous section

@return void