Differential D15987 Diff 38486 src/infrastructure/storage/management/workflow/PhabricatorStorageManagementStatusWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/management/workflow/PhabricatorStorageManagementStatusWorkflow.php
<?php | <?php | ||||
final class PhabricatorStorageManagementStatusWorkflow | final class PhabricatorStorageManagementStatusWorkflow | ||||
extends PhabricatorStorageManagementWorkflow { | extends PhabricatorStorageManagementWorkflow { | ||||
protected function didConstruct() { | protected function didConstruct() { | ||||
$this | $this | ||||
->setName('status') | ->setName('status') | ||||
->setExamples('**status** [__options__]') | ->setExamples('**status** [__options__]') | ||||
->setSynopsis(pht('Show patch application status.')); | ->setSynopsis(pht('Show patch application status.')); | ||||
} | } | ||||
protected function isReadOnlyWorkflow() { | |||||
return true; | |||||
} | |||||
public function didExecute(PhutilArgumentParser $args) { | public function didExecute(PhutilArgumentParser $args) { | ||||
$api = $this->getAPI(); | $api = $this->getAPI(); | ||||
$patches = $this->getPatches(); | $patches = $this->getPatches(); | ||||
$applied = $api->getAppliedPatches(); | $applied = $api->getAppliedPatches(); | ||||
if ($applied === null) { | if ($applied === null) { | ||||
echo phutil_console_format( | echo phutil_console_format( | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |