44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
|
|
#!/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
|
||
|
|
*
|
||
|
|
* Examples:
|
||
|
|
* php bin/console module:sync
|
||
|
|
* php bin/console module:deactivate addressbook --confirm
|
||
|
|
* php bin/console scheduler:run
|
||
|
|
* php bin/console doctor
|
||
|
|
*/
|
||
|
|
|
||
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
||
|
|
|
||
|
|
use MintyPHP\Console\ConsoleApplication;
|
||
|
|
use MintyPHP\Console\Commands\DoctorCommand;
|
||
|
|
use MintyPHP\Console\Commands\Module\AssetsSyncCommand;
|
||
|
|
use MintyPHP\Console\Commands\Module\BuildCommand;
|
||
|
|
use MintyPHP\Console\Commands\Module\DeactivateCommand;
|
||
|
|
use MintyPHP\Console\Commands\Module\MigrateCommand;
|
||
|
|
use MintyPHP\Console\Commands\Module\PermissionsSyncCommand;
|
||
|
|
use MintyPHP\Console\Commands\Module\RuntimeSyncCommand;
|
||
|
|
use MintyPHP\Console\Commands\Scheduler\RunCommand;
|
||
|
|
|
||
|
|
$app = new ConsoleApplication();
|
||
|
|
|
||
|
|
$app->register(new RuntimeSyncCommand());
|
||
|
|
$app->register(new MigrateCommand());
|
||
|
|
$app->register(new PermissionsSyncCommand());
|
||
|
|
$app->register(new BuildCommand());
|
||
|
|
$app->register(new AssetsSyncCommand());
|
||
|
|
$app->register(new DeactivateCommand());
|
||
|
|
$app->register(new RunCommand());
|
||
|
|
$app->register(new DoctorCommand());
|
||
|
|
|
||
|
|
exit($app->run($argv));
|