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

declare (strict_types=1);

namespace tpr\cli;

use tpr\App;
use tpr\command\Init;

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

App::debugMode(true);
App::default()->config([
    'server_options' => [
        'name'      => 'TPR Command Tools',
        'version'   => TPR_FRAMEWORK_VERSION,
        'namespace' => "tpr\\command",
        'commands'  => [
            'init' => Init::class,
        ]
    ],
])->run();