Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistDownloadWorkflow.php
| <?php | <?php | ||||
| /** | /** | ||||
| * Download a file from Phabricator. | * Download a file from Phabricator. | ||||
| * | |||||
| * @group workflow | |||||
| */ | */ | ||||
| final class ArcanistDownloadWorkflow extends ArcanistBaseWorkflow { | final class ArcanistDownloadWorkflow extends ArcanistBaseWorkflow { | ||||
| private $id; | private $id; | ||||
| private $saveAs; | private $saveAs; | ||||
| private $show; | private $show; | ||||
| public function getWorkflowName() { | public function getWorkflowName() { | ||||
| Show All 16 Lines | |||||
| EOTEXT | EOTEXT | ||||
| ); | ); | ||||
| } | } | ||||
| public function getArguments() { | public function getArguments() { | ||||
| return array( | return array( | ||||
| 'show' => array( | 'show' => array( | ||||
| 'conflicts' => array( | 'conflicts' => array( | ||||
| 'as' => 'Use --show to direct the file to stdout, or --as to direct '. | 'as' => | ||||
| 'Use --show to direct the file to stdout, or --as to direct '. | |||||
| 'it to a named location.', | 'it to a named location.', | ||||
| ), | ), | ||||
| 'help' => 'Write file to stdout instead of to disk.', | 'help' => 'Write file to stdout instead of to disk.', | ||||
| ), | ), | ||||
| 'as' => array( | 'as' => array( | ||||
| 'param' => 'name', | 'param' => 'name', | ||||
| 'help' => 'Save the file with a specific name rather than the default.', | 'help' => 'Save the file with a specific name rather than the default.', | ||||
| ), | ), | ||||
| '*' => 'argv', | '*' => 'argv', | ||||
| ▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines | |||||