Differential D25344 Diff 1154 src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php
Show All 24 Lines | abstract class PhabricatorAphlictManagementWorkflow | ||||
} | } | ||||
protected function parseLaunchArguments(PhutilArgumentParser $args) { | protected function parseLaunchArguments(PhutilArgumentParser $args) { | ||||
$config_file = $args->getArg('config'); | $config_file = $args->getArg('config'); | ||||
if ($config_file) { | if ($config_file) { | ||||
$full_path = Filesystem::resolvePath($config_file); | $full_path = Filesystem::resolvePath($config_file); | ||||
$show_path = $full_path; | $show_path = $full_path; | ||||
} else { | } else { | ||||
$root = dirname(dirname(phutil_get_library_root('phabricator'))); | $root = dirname(phutil_get_library_root('phorge')); | ||||
$try = array( | $try = array( | ||||
'phabricator/conf/aphlict/aphlict.custom.json', | 'conf/aphlict/aphlict.custom.json', | ||||
'phabricator/conf/aphlict/aphlict.default.json', | 'conf/aphlict/aphlict.default.json', | ||||
); | ); | ||||
foreach ($try as $config) { | foreach ($try as $config) { | ||||
$full_path = $root.'/'.$config; | $full_path = $root.'/'.$config; | ||||
$show_path = $config; | $show_path = '<phorge>/'.$config; | ||||
if (Filesystem::pathExists($full_path)) { | if (Filesystem::pathExists($full_path)) { | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
echo tsprintf( | echo tsprintf( | ||||
"%s\n", | "%s\n", | ||||
▲ Show 20 Lines • Show All 529 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0