<?php

declare(strict_types=1);

require __DIR__ . '/../../vendor/autoload.php';

use App\Framework\Logging\Commands\LogHealthCheckCommand;
use App\Framework\Console\ConsoleInput;
use App\Framework\Console\ConsoleOutput;

echo "=== LogHealthCheckCommand Manual Test (v2 - No Constructor) ===\n\n";

// Create command (no dependencies needed now)
$command = new LogHealthCheckCommand();

// Create input/output
$argv = ['test-log-health-check.php', '--detailed'];
$output = new ConsoleOutput();
$input = new ConsoleInput($argv, $output, null);

echo "Running logs:health-check --detailed...\n\n";

// Execute command
$result = $command->execute($input);

echo "\n\nCommand completed with exit code: " . $result->value . "\n";
