Changeset View
Changeset View
Standalone View
Standalone View
scripts/init/init-arcanist.php
| Show All 29 Lines | try { | ||||
| $ex->getMessage())); | $ex->getMessage())); | ||||
| return 77; | return 77; | ||||
| } | } | ||||
| } | } | ||||
| private function executeCore(array $argv) { | private function executeCore(array $argv) { | ||||
| $config_args = array( | $config_args = array( | ||||
| array( | array( | ||||
| 'name' => 'load-phutil-library', | 'name' => 'library', | ||||
| 'param' => 'path', | 'param' => 'path', | ||||
| 'help' => pht('Load a libphutil library.'), | 'help' => pht('Load a libphutil library.'), | ||||
| 'repeat' => true, | 'repeat' => true, | ||||
| ), | ), | ||||
| array( | array( | ||||
| 'name' => 'config', | 'name' => 'config', | ||||
| 'param' => 'key=value', | 'param' => 'key=value', | ||||
| 'repeat' => true, | 'repeat' => true, | ||||
| ▲ Show 20 Lines • Show All 247 Lines • ▼ Show 20 Lines | if ($is_trace) { | ||||
| $library_name, | $library_name, | ||||
| phutil_get_library_root($library_name))); | phutil_get_library_root($library_name))); | ||||
| } | } | ||||
| } | } | ||||
| $load = array(); | $load = array(); | ||||
| $working_copy = $config->getWorkingCopyIdentity(); | $working_copy = $config->getWorkingCopyIdentity(); | ||||
| $cli_libraries = $args->getArg('load-phutil-library'); | $cli_libraries = $args->getArg('library'); | ||||
| if ($cli_libraries) { | if ($cli_libraries) { | ||||
| $load[] = array( | $load[] = array( | ||||
| '--load-phutil-library', | '--library', | ||||
| $cli_libraries, | $cli_libraries, | ||||
| ); | ); | ||||
| } else { | } else { | ||||
| $system_config = $config->readSystemArcConfig(); | $system_config = $config->readSystemArcConfig(); | ||||
| $load[] = array( | $load[] = array( | ||||
| $config->getSystemArcConfigLocation(), | $config->getSystemArcConfigLocation(), | ||||
| idx($system_config, 'load', array()), | idx($system_config, 'load', array()), | ||||
| ); | ); | ||||
| ▲ Show 20 Lines • Show All 276 Lines • Show Last 20 Lines | |||||