Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistLiberateWorkflow.php
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | if (count($argv) > 1) { | ||||
pht( | pht( | ||||
'Provide only one path to "arc liberate". The path should identify '. | 'Provide only one path to "arc liberate". The path should identify '. | ||||
'a directory where you want to create or update a library.')); | 'a directory where you want to create or update a library.')); | ||||
} else if (!$argv) { | } else if (!$argv) { | ||||
$log->writeStatus( | $log->writeStatus( | ||||
pht('SCAN'), | pht('SCAN'), | ||||
pht('Searching for libraries in the current working directory...')); | pht('Searching for libraries in the current working directory...')); | ||||
$init_files = id(new FileFinder(getcwd())) | $init_files = (new FileFinder(getcwd())) | ||||
->withPath('*/__phutil_library_init__.php') | ->withPath('*/__phutil_library_init__.php') | ||||
->find(); | ->find(); | ||||
if (!$init_files) { | if (!$init_files) { | ||||
throw new ArcanistUsageException( | throw new ArcanistUsageException( | ||||
pht( | pht( | ||||
'Unable to find any libraries under the current working '. | 'Unable to find any libraries under the current working '. | ||||
'directory. To create a library, provide a path.')); | 'directory. To create a library, provide a path.')); | ||||
▲ Show 20 Lines • Show All 174 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