<?php

namespace App\Console\Commands;

use App\Services\Operations\DailyWorkflowService;
use Illuminate\Console\Command;

class GenerateDailyWorkflowCommand extends Command
{
    protected $signature = 'dw:daily-workflow {--readiness=} {--platform=}';

    protected $description = 'Ajans görev panosu için günlük operasyon görevleri üretir.';

    public function handle(DailyWorkflowService $workflow): int
    {
        $result = $workflow->generateDailyTasks([
            'readiness' => $this->option('readiness'),
            'platform' => $this->option('platform'),
        ]);

        $this->info($result['message']);

        return self::SUCCESS;
    }
}
