<?php
declare(strict_types=1);

namespace PpPhp\Core\Platform\Console\Commands;

use PpPhp\Core\Platform\Console\AbstractCommand;
use PpPhp\Core\Platform\Developer\PlatformInspector;

final class InspectCommand extends AbstractCommand
{
    public function name(): string { return 'inspect'; }
    public function description(): string { return 'Inspect kernel, manifests, modules and extensions.'; }

    public function handle(array $arguments = []): int
    {
        $this->json((new PlatformInspector())->inspect());
        return 0;
    }
}
