Changeset View
Changeset View
Standalone View
Standalone View
src/configuration/ArcanistConfiguration.php
| Show All 25 Lines | if ($command == '--help') { | ||||
| // Special-case "arc --help" to behave like "arc help" instead of telling | // Special-case "arc --help" to behave like "arc help" instead of telling | ||||
| // you to type "arc help" without being helpful. | // you to type "arc help" without being helpful. | ||||
| $command = 'help'; | $command = 'help'; | ||||
| } else if ($command == '--version') { | } else if ($command == '--version') { | ||||
| // Special-case "arc --version" to behave like "arc version". | // Special-case "arc --version" to behave like "arc version". | ||||
| $command = 'version'; | $command = 'version'; | ||||
| } | } | ||||
| return idx($this->buildAllWorkflows(), $command); | return clone idx($this->buildAllWorkflows(), $command); | ||||
| } | } | ||||
| public function buildAllWorkflows() { | public function buildAllWorkflows() { | ||||
| return id(new PhutilClassMapQuery()) | return id(new PhutilClassMapQuery()) | ||||
| ->setAncestorClass('ArcanistWorkflow') | ->setAncestorClass('ArcanistWorkflow') | ||||
| ->setUniqueMethod('getWorkflowName') | ->setUniqueMethod('getWorkflowName') | ||||
| ->execute(); | ->execute(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines | |||||