<?php

namespace App\Console\Commands;

use App\Services\ExportService;
use Exception;
use Illuminate\Console\Command;

class ExportMaf extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'app:export-maf';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Экспорт каталога МАФ';

    /**
     * Execute the console command.
     * @throws Exception
     */
    public function handle(): void
    {
        // run service command
        $this->info((new ExportService)->handle());
    }
}
