Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistLiberateWorkflow.php
| Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | return array( | ||||
| 'upgrade' => array( | 'upgrade' => array( | ||||
| 'hide' => true, | 'hide' => true, | ||||
| 'help' => pht('Experimental. Upgrade library to v2.'), | 'help' => pht('Experimental. Upgrade library to v2.'), | ||||
| ), | ), | ||||
| '*' => 'argv', | '*' => 'argv', | ||||
| ); | ); | ||||
| } | } | ||||
| public function run() { | public function runWorkflow() { | ||||
| $argv = $this->getArgument('argv'); | $argv = $this->getArgument('argv'); | ||||
| if (count($argv) > 1) { | if (count($argv) > 1) { | ||||
| throw new ArcanistUsageException( | throw new ArcanistUsageException( | ||||
| pht( | pht( | ||||
| "Provide only one path to '%s'. The path should be a directory ". | "Provide only one path to '%s'. The path should be a directory ". | ||||
| "where you want to create or update a libphutil library.", | "where you want to create or update a libphutil library.", | ||||
| 'arc liberate')); | 'arc liberate')); | ||||
| } else if (count($argv) == 0) { | } else if (count($argv) == 0) { | ||||
| ▲ Show 20 Lines • Show All 172 Lines • Show Last 20 Lines | |||||