Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistLiberateWorkflow.php
Context not available. | |||||
$map = Filesystem::readFile($map_file); | $map = Filesystem::readFile($map_file); | ||||
$matches = null; | $matches = null; | ||||
if (preg_match('/@phutil-library-version (\d+)/', $map, $matches)) { | if (@preg_match('/@phutil-library-version (\d+)/', $map, $matches)) { | ||||
return (int)$matches[1]; | return (int)$matches[1]; | ||||
} | } | ||||
Context not available. | |||||
$name = phutil_console_prompt( | $name = phutil_console_prompt( | ||||
pht('What do you want to name this library?')); | pht('What do you want to name this library?')); | ||||
if (preg_match('/^[a-z-]+$/', $name)) { | if (@preg_match('/^[a-z-]+$/', $name)) { | ||||
break; | break; | ||||
} else { | } else { | ||||
echo phutil_console_format( | echo phutil_console_format( | ||||
Context not available. |
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