#!/usr/bin/env php
<?php

declare(strict_types=1);

error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
ini_set('display_errors', '1');

$autoloader = require dirname(__DIR__) . '/vendor/autoload.php';

$environment = App\AppFactory::buildEnvironment(
        [
                App\Environment::BASE_DIR => dirname(__DIR__),
        ]
);

$console = new Silly\Application('AzuraCast Metadata Processor', App\Version::FALLBACK_VERSION);

$console->command(
        'read path json-output [--art-output=]',
        new App\MediaProcessor\Command\ReadCommand
);

$console->command(
        'write path json-input [--art-input=]',
        new App\MediaProcessor\Command\WriteCommand
);

$console->run();
