Differential D15987 Diff 38486 src/infrastructure/storage/management/workflow/PhabricatorStorageManagementShellWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/management/workflow/PhabricatorStorageManagementShellWorkflow.php
<?php | <?php | ||||
final class PhabricatorStorageManagementShellWorkflow | final class PhabricatorStorageManagementShellWorkflow | ||||
extends PhabricatorStorageManagementWorkflow { | extends PhabricatorStorageManagementWorkflow { | ||||
protected function didConstruct() { | protected function didConstruct() { | ||||
$this | $this | ||||
->setName('shell') | ->setName('shell') | ||||
->setExamples('**shell** [__options__]') | ->setExamples('**shell** [__options__]') | ||||
->setSynopsis(pht('Launch an interactive shell.')); | ->setSynopsis(pht('Launch an interactive shell.')); | ||||
} | } | ||||
public function execute(PhutilArgumentParser $args) { | protected function isReadOnlyWorkflow() { | ||||
return true; | |||||
} | |||||
public function execute(PhutilArgumentParser $args) { | |||||
$api = $this->getAPI(); | $api = $this->getAPI(); | ||||
list($host, $port) = $this->getBareHostAndPort($api->getHost()); | list($host, $port) = $this->getBareHostAndPort($api->getHost()); | ||||
$flag_port = $port | $flag_port = $port | ||||
? csprintf('--port %d', $port) | ? csprintf('--port %d', $port) | ||||
: ''; | : ''; | ||||
$flag_password = ''; | $flag_password = ''; | ||||
Show All 17 Lines |