#! /usr/bin/php
<?php
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
    require __DIR__ . '/vendor/autoload.php';
} else {
    require __DIR__ . '/../../autoload.php';
}
require __DIR__ . '/helpers.php';

use I74ifa\Vaid\Commands\InstallCommand;
use Symfony\Component\Console\Application;
use Symfony\Component\Process\Exception\ProcessFailedException;
use Symfony\Component\Process\Process;
use I74ifa\Vaid\Commands\LinkCommand;
use I74ifa\Vaid\Commands\UnlinkCommand;
use I74ifa\Vaid\Helpers\Apache;
use I74ifa\Vaid\Helpers\DistroType;
use I74ifa\Vaid\Helpers\FileConfig;

$app = new Application('vaid', '2.0.2');


$app->addCommands([
    new LinkCommand(),
    new UnlinkCommand(),
    new InstallCommand()
]);

// create config directory

// $dir = scandir('');

$app->run();