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

declare(strict_types=1);

use Symfony\Component\Console\Application;

$vendorPath = dirname(__DIR__, 4).'/vendor/autoload.php';
$localPath = dirname(__DIR__).'/vendor/autoload.php';

if (file_exists($vendorPath)) {
    include_once $vendorPath;
    $autoloadPath = $vendorPath;
} else {
    include_once $localPath;
    $autoloadPath = $localPath;
}

$application = new Application(
    'Hit',
    '0.0.1',
);

$application->add(
    new \Hit\Console\Commands\HitCommand(),
);

$application->setDefaultCommand('default');

$application->run();
