2026-03-19 19:04:28 +01:00
|
|
|
#!/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
|
2026-03-19 19:16:36 +01:00
|
|
|
* php bin/console <command> --help
|
2026-03-19 19:04:28 +01:00
|
|
|
*
|
2026-04-13 23:20:05 +02:00
|
|
|
* Commands are auto-discovered from core/Console/Commands/.
|
2026-03-19 19:16:36 +01:00
|
|
|
* To add a new command, create a class extending Command in that directory.
|
2026-03-19 19:04:28 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
|
|
|
|
|
|
|
|
use MintyPHP\Console\ConsoleApplication;
|
|
|
|
|
|
|
|
|
|
$app = new ConsoleApplication();
|
2026-04-13 23:20:05 +02:00
|
|
|
$app->discoverCommands(__DIR__ . '/../core/Console/Commands');
|
2026-03-19 19:04:28 +01:00
|
|
|
|
|
|
|
|
exit($app->run($argv));
|