2026-03-19 19:04:28 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace MintyPHP\Console\Commands\Module;
|
|
|
|
|
|
|
|
|
|
use MintyPHP\Console\Command;
|
|
|
|
|
|
|
|
|
|
final class RuntimeSyncCommand extends Command
|
|
|
|
|
{
|
|
|
|
|
public function name(): string
|
|
|
|
|
{
|
|
|
|
|
return 'module:sync';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function description(): string
|
|
|
|
|
{
|
|
|
|
|
return 'Run full module runtime sync (migrate, permissions, build, assets)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function execute(array $args, array $options): int
|
|
|
|
|
{
|
2026-03-19 19:16:36 +01:00
|
|
|
$this->requireBinScript('module-runtime-sync.php');
|
2026-03-19 19:04:28 +01:00
|
|
|
|
|
|
|
|
return moduleRuntimeSyncRun();
|
|
|
|
|
}
|
|
|
|
|
}
|