Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistUploadWorkflow.php
| Show All 34 Lines | return array( | ||||
| 'help' => 'Output upload information in JSON format.', | 'help' => 'Output upload information in JSON format.', | ||||
| ), | ), | ||||
| '*' => 'paths', | '*' => 'paths', | ||||
| ); | ); | ||||
| } | } | ||||
| protected function didParseArguments() { | protected function didParseArguments() { | ||||
| if (!$this->getArgument('paths')) { | if (!$this->getArgument('paths')) { | ||||
| throw new ArcanistUsageException("Specify one or more files to upload."); | throw new ArcanistUsageException('Specify one or more files to upload.'); | ||||
| } | } | ||||
| $this->paths = $this->getArgument('paths'); | $this->paths = $this->getArgument('paths'); | ||||
| $this->json = $this->getArgument('json'); | $this->json = $this->getArgument('json'); | ||||
| } | } | ||||
| public function requiresAuthentication() { | public function requiresAuthentication() { | ||||
| return true; | return true; | ||||
| ▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines | |||||