<?php
declare(strict_types=1);

namespace LotGD\Core\Console\Command;

use LotGD\Core\Bootstrap;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

class ModuleValidateCommand extends Command
{
    protected function configure()
    {
        $this->setName('module:validate')
             ->setDescription('Validate installed modules');
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $g = Bootstrap::createGame();

        $results = $g->getModuleManager()->validate();

        if (count($results) > 0) {
            foreach ($results as $r) {
                $output->writeln($r);
            }
            return 1;
        } else {
            return 0;
        }
    }
}

<?php
declare(strict_types=1);

namespace LotGD\Core\Console\Command;

use LotGD\Core\Bootstrap;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

class ModuleValidateCommand extends Command
{
    protected function configure()
    {
        $this->setName('module:validate')
             ->setDescription('Validate installed modules');
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $g = Bootstrap::createGame();

        $results = $g->getModuleManager()->validate();

        if (count($results) > 0) {
            foreach ($results as $r) {
                $output->writeln($r);
            }
            return 1;
        } else {
            $output->writeln("<info>LotGD modules validated</info>");
            return 0;
        }
    }
}

Add completion message to module:validate command
Add completion message to module:validate command
