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

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

use LaraDumps\LaraDumpsCore\Commands\CheckCommand;
use LaraDumps\LaraDumpsCore\Commands\ClearV1ConfigCommand;
use LaraDumps\LaraDumpsCore\Commands\ConfigureDesktopAppCommand;
use Symfony\Component\Console\Application;

$application = new Application('LaraDumps Core', 'v1.0.0');
$application->add(new ClearV1ConfigCommand());
$application->add(new ConfigureDesktopAppCommand());
$application->add(new CheckCommand());
$application->run();
