Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistLiberateWorkflow.php
Show All 22 Lines | return $this->newWorkflowInformation() | ||||
->setHelp($help); | ->setHelp($help); | ||||
} | } | ||||
public function getWorkflowArguments() { | public function getWorkflowArguments() { | ||||
return array( | return array( | ||||
$this->newWorkflowArgument('clean') | $this->newWorkflowArgument('clean') | ||||
->setHelp( | ->setHelp( | ||||
pht('Perform a clean rebuild, ignoring caches. Thorough, but slow.')), | pht('Perform a clean rebuild, ignoring caches. Thorough, but slow.')), | ||||
$this->newWorkflowArgument('verbose') | |||||
->setHelp( | |||||
pht('Write more detailed log messages to stderr')), | |||||
$this->newWorkflowArgument('argv') | $this->newWorkflowArgument('argv') | ||||
->setWildcard(true) | ->setWildcard(true) | ||||
->setIsPathArgument(true), | ->setIsPathArgument(true), | ||||
); | ); | ||||
} | } | ||||
protected function newPrompts() { | protected function newPrompts() { | ||||
return array( | return array( | ||||
▲ Show 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | ); | ||||
private function liberateVersion2($path) { | private function liberateVersion2($path) { | ||||
$bin = $this->getScriptPath('support/lib/rebuild-map.php'); | $bin = $this->getScriptPath('support/lib/rebuild-map.php'); | ||||
$argv = array(); | $argv = array(); | ||||
if ($this->getArgument('clean')) { | if ($this->getArgument('clean')) { | ||||
$argv[] = '--drop-cache'; | $argv[] = '--drop-cache'; | ||||
} | } | ||||
if (!$this->getArgument('verbose')) { | |||||
$argv[] = '--quiet'; | |||||
} | |||||
return phutil_passthru( | return phutil_passthru( | ||||
'php -f %R -- %Ls %R', | 'php -f %R -- %Ls %R', | ||||
$bin, | $bin, | ||||
$argv, | $argv, | ||||
$path); | $path); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 68 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