run / restore feature

Signed-off-by: Andy Miller <rhuk@mac.com>
This commit is contained in:
Andy Miller
2025-10-18 13:48:02 -06:00
parent f30cd26956
commit 7325eb2cfe

View File

@@ -74,7 +74,12 @@ class SafeUpgradeRunCommand extends GravCommand
]);
try {
$result = $manager->run($options);
$operation = $options['operation'] ?? 'upgrade';
if ($operation === 'restore') {
$result = $manager->runRestore($options);
} else {
$result = $manager->run($options);
}
$manager->ensureJobResult($result);
return ($result['status'] ?? null) === 'success' ? 0 : 1;