Files
breadcrumb-the-shire/bin/console

26 lines
603 B
Plaintext
Raw Normal View History

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
* php bin/console <command> --help
2026-03-19 19:04:28 +01:00
*
* Commands are auto-discovered from core/Console/Commands/.
* 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();
$app->discoverCommands(__DIR__ . '/../core/Console/Commands');
2026-03-19 19:04:28 +01:00
exit($app->run($argv));