#!/usr/bin/env php
<?php
use Binky\Application;
use Binky\Command;

    $files = [
        __DIR__ . '/../vendor/autoload.php',
        __DIR__ . '/../autoload.php',
        __DIR__ . '/../../autoload.php',
        __DIR__ . '/../../../autoload.php'
    ];

    foreach ($files as $file) {
        if (file_exists($file)) {
            require $file;
            break;
        }
    }

    (new Application(new Command))->run();
