Changeset View
Changeset View
Standalone View
Standalone View
src/runtime/ArcanistRuntime.php
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Lines | private function executeCore(array $argv) { | ||||
$args->setUnconsumedArgumentVector($result_argv); | $args->setUnconsumedArgumentVector($result_argv); | ||||
// TOOLSETS: Some day, stop falling through to the old "arc" runtime. | // TOOLSETS: Some day, stop falling through to the old "arc" runtime. | ||||
try { | try { | ||||
return $args->parseWorkflowsFull($phutil_workflows); | return $args->parseWorkflowsFull($phutil_workflows); | ||||
} catch (PhutilArgumentUsageException $usage_exception) { | } catch (PhutilArgumentUsageException $usage_exception) { | ||||
$log->writeHint( | |||||
pht('(::)'), | // TODO: This is very, very hacky; we're trying to let errors like | ||||
pht( | // "you passed the wrong arguments" through but fall back to classic | ||||
'Workflow is unrecognized by modern "arc", falling through '. | // mode if the workflow itself doesn't exist. | ||||
'to classic mode.')); | if (!preg_match('/invalid command/i', $usage_exception->getMessage())) { | ||||
throw $usage_exception; | |||||
} | |||||
} | } | ||||
$arcanist_root = phutil_get_library_root('arcanist'); | $arcanist_root = phutil_get_library_root('arcanist'); | ||||
$arcanist_root = dirname($arcanist_root); | $arcanist_root = dirname($arcanist_root); | ||||
$bin = $arcanist_root.'/scripts/arcanist.php'; | $bin = $arcanist_root.'/scripts/arcanist.php'; | ||||
$err = phutil_passthru( | $err = phutil_passthru( | ||||
'php -f %R -- %Ls', | 'php -f %R -- %Ls', | ||||
▲ Show 20 Lines • Show All 489 Lines • Show Last 20 Lines |