Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistCloseWorkflow.php
| <?php | <?php | ||||
| /** | /** | ||||
| * Close a task | * Close a task. | ||||
| * | |||||
| * @group workflow | |||||
| */ | */ | ||||
| final class ArcanistCloseWorkflow extends ArcanistBaseWorkflow { | final class ArcanistCloseWorkflow extends ArcanistBaseWorkflow { | ||||
| private $tasks; | private $tasks; | ||||
| private $statusOptions; | private $statusOptions; | ||||
| private $statusData; | private $statusData; | ||||
| private function loadStatusData() { | private function loadStatusData() { | ||||
| ▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | return array( | ||||
| 'message' => array( | 'message' => array( | ||||
| 'short' => 'm', | 'short' => 'm', | ||||
| 'param' => 'comment', | 'param' => 'comment', | ||||
| 'help' => pht('Provide a comment with your status change.'), | 'help' => pht('Provide a comment with your status change.'), | ||||
| ), | ), | ||||
| 'status' => array( | 'status' => array( | ||||
| 'param' => 'status', | 'param' => 'status', | ||||
| 'short' => 's', | 'short' => 's', | ||||
| 'help' => pht('Specify a new status. Valid status options can be '. | 'help' => pht( | ||||
| 'Specify a new status. Valid status options can be '. | |||||
| 'seen with the `list-statuses` argument.'), | 'seen with the `list-statuses` argument.'), | ||||
| ), | ), | ||||
| 'list-statuses' => array( | 'list-statuses' => array( | ||||
| 'help' => 'Show available status options and exit.', | 'help' => 'Show available status options and exit.', | ||||
| ), | ), | ||||
| ); | ); | ||||
| } | } | ||||
| public function run() { | public function run() { | ||||
| ▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines | |||||