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

declare(strict_types=1);

/**
 * CoreCore CLI — single entry point for all commands.
 *
 * Usage:
 *   php bin/console <command> [arguments] [options]
 *   php bin/console list
 *   php bin/console <command> --help
 *
 * Commands are auto-discovered from core/Console/Commands/.
 * To add a new command, create a class extending Command in that directory.
 */

require_once __DIR__ . '/../vendor/autoload.php';

use MintyPHP\Console\ConsoleApplication;

$app = new ConsoleApplication();
$app->discoverCommands(__DIR__ . '/../core/Console/Commands');

exit($app->run($argv));
