Differential D15987 Diff 38486 src/infrastructure/storage/management/workflow/PhabricatorStorageManagementProbeWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/management/workflow/PhabricatorStorageManagementProbeWorkflow.php
<?php | <?php | ||||
final class PhabricatorStorageManagementProbeWorkflow | final class PhabricatorStorageManagementProbeWorkflow | ||||
extends PhabricatorStorageManagementWorkflow { | extends PhabricatorStorageManagementWorkflow { | ||||
protected function didConstruct() { | protected function didConstruct() { | ||||
$this | $this | ||||
->setName('probe') | ->setName('probe') | ||||
->setExamples('**probe**') | ->setExamples('**probe**') | ||||
->setSynopsis(pht('Show approximate table sizes.')); | ->setSynopsis(pht('Show approximate table sizes.')); | ||||
} | } | ||||
protected function isReadOnlyWorkflow() { | |||||
return true; | |||||
} | |||||
public function didExecute(PhutilArgumentParser $args) { | public function didExecute(PhutilArgumentParser $args) { | ||||
$console = PhutilConsole::getConsole(); | $console = PhutilConsole::getConsole(); | ||||
$console->writeErr( | $console->writeErr( | ||||
"%s\n", | "%s\n", | ||||
pht('Analyzing table sizes (this may take a moment)...')); | pht('Analyzing table sizes (this may take a moment)...')); | ||||
$api = $this->getAPI(); | $api = $this->getAPI(); | ||||
$patches = $this->getPatches(); | $patches = $this->getPatches(); | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |