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

/*
 * This file is part of the abgeo/covid19-cli package.
 *
 * (c) Temuri Takalandze <me@abgeo.dev>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

use Symfony\Component\Console\Application;
use ABGEO\COVID\Command\CountriesCommand;
use ABGEO\COVID\Command\DisplayCommand;

if (file_exists(__DIR__.'/../../../autoload.php')) {
    require __DIR__.'/../../../autoload.php';
} else {
    require dirname(__DIR__).'/vendor/autoload.php';
}

$app = new Application('COVID-19 CLI');
$app->addCommands(
    [
        new DisplayCommand(),
        new CountriesCommand(),
    ]
);

$app->run();
