Differential D16848 Diff 40576 src/infrastructure/storage/management/workflow/PhabricatorStorageManagementShellWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/management/workflow/PhabricatorStorageManagementShellWorkflow.php
Show All 9 Lines | $this | ||||
->setSynopsis(pht('Launch an interactive shell.')); | ->setSynopsis(pht('Launch an interactive shell.')); | ||||
} | } | ||||
protected function isReadOnlyWorkflow() { | protected function isReadOnlyWorkflow() { | ||||
return true; | return true; | ||||
} | } | ||||
public function execute(PhutilArgumentParser $args) { | public function execute(PhutilArgumentParser $args) { | ||||
$api = $this->getAPI(); | $api = $this->getSingleAPI(); | ||||
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 = ''; | ||||
$password = $api->getPassword(); | $password = $api->getPassword(); | ||||
Show All 16 Lines |