<?php

declare(strict_types=1);

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

use App\Framework\Core\PathProvider;
use App\Framework\Logging\LogConfig;
use App\Framework\Logging\Commands\LogHealthCheckCommand;
use App\Framework\Console\ConsoleInput;
use App\Framework\Console\ConsoleOutput;

echo "=== LogHealthCheckCommand Manual Test ===\n\n";

// Setup dependencies
$pathProvider = new PathProvider('/var/www/html');
$logConfig = new LogConfig($pathProvider);

// Create command
$command = new LogHealthCheckCommand($logConfig, $pathProvider);

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

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

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

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