Differential D16848 Diff 40576 src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDatabasesWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDatabasesWorkflow.php
| Show All 9 Lines | $this | ||||
| ->setSynopsis(pht('List Phabricator databases.')); | ->setSynopsis(pht('List Phabricator databases.')); | ||||
| } | } | ||||
| protected function isReadOnlyWorkflow() { | protected function isReadOnlyWorkflow() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function didExecute(PhutilArgumentParser $args) { | public function didExecute(PhutilArgumentParser $args) { | ||||
| $api = $this->getAPI(); | $api = $this->getAnyAPI(); | ||||
| $patches = $this->getPatches(); | $patches = $this->getPatches(); | ||||
| $databases = $api->getDatabaseList($patches, true); | $databases = $api->getDatabaseList($patches, true); | ||||
| echo implode("\n", $databases)."\n"; | echo implode("\n", $databases)."\n"; | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| } | } | ||||