2022-09-13 13:14:49 +00:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
|
|
|
namespace Misuzu;
|
|
|
|
|
|
|
|
use Misuzu\Console\CommandArgs;
|
|
|
|
use Misuzu\Console\CommandCollection;
|
|
|
|
|
|
|
|
require_once __DIR__ . '/misuzu.php';
|
|
|
|
|
|
|
|
if(!MSZ_CLI)
|
|
|
|
die('This tool is meant to be used through command line only.' . PHP_EOL);
|
|
|
|
|
|
|
|
$commands = new CommandCollection;
|
|
|
|
$commands->addCommands(
|
2023-01-06 20:35:03 +00:00
|
|
|
new \Misuzu\Console\Commands\CronCommand($msz),
|
2023-01-07 04:15:19 +00:00
|
|
|
new \Misuzu\Console\Commands\MigrateCommand($msz),
|
|
|
|
new \Misuzu\Console\Commands\NewMigrationCommand($msz),
|
2022-09-13 13:14:49 +00:00
|
|
|
);
|
|
|
|
$commands->dispatch(new CommandArgs($argv));
|