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

$autoloadFile = match (true) {
    file_exists(__DIR__ . '/../vendor/autoload.php') => __DIR__ . '/../vendor/autoload.php',
    file_exists(__DIR__ . '/../autoload.php') => __DIR__ . '/../autoload.php',
    file_exists(__DIR__ . '/../../autoload.php') => __DIR__ . '/../../autoload.php',
    file_exists(__DIR__ . '/../../../autoload.php') => __DIR__ . '/../../../autoload.php',
    true => die("\nERROR: There is not defined root for autoloading.\n"),
};

require $autoloadFile;

(new \Warp\Console\WarpApplication())->run();

