#!/usr/bin/env php
<?php
// Register Application Space
define('BEAR', $_SERVER['BEAR_ENV'] ?? 'production');

// Includes Contants
require_once __DIR__ . '/config/constants.php';

// Includes Composer Vendor Packages
require_once __DIR__ . '/vendor/autoload.php';

use Silly\Edition\PhpDi\Application;

// List all Command
use Bear\App\Command\TestCommand;

$app = new Application();

// Routes list Command
$app->command(
    'greet [name] [--upper] [--randomFaker]',
    TestCommand::class
);

try {
    $app->run();
} catch (Exception $e) {
    echo $e->getMessage();
}
