Page MenuHomePhabricator

D9645.diff
No OneTemporary

D9645.diff

diff --git a/src/applications/daemon/management/PhabricatorDaemonManagementStatusWorkflow.php b/src/applications/daemon/management/PhabricatorDaemonManagementStatusWorkflow.php
--- a/src/applications/daemon/management/PhabricatorDaemonManagementStatusWorkflow.php
+++ b/src/applications/daemon/management/PhabricatorDaemonManagementStatusWorkflow.php
@@ -7,12 +7,23 @@
$this
->setName('status')
->setSynopsis(pht('Show status of running daemons.'))
- ->setArguments(array());
+ ->setArguments(
+ array(
+ array(
+ 'name' => 'local',
+ 'help' => pht('Show only local daemons.'),
+ ),
+ ));
}
public function execute(PhutilArgumentParser $args) {
$console = PhutilConsole::getConsole();
- $daemons = $this->loadAllRunningDaemons();
+
+ if ($args->getArg('local')) {
+ $daemons = $this->loadRunningDaemons();
+ } else {
+ $daemons = $this->loadAllRunningDaemons();
+ }
if (!$daemons) {
$console->writeErr(

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 8, 12:11 AM (6 d, 3 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6720117
Default Alt Text
D9645.diff (1 KB)

Event Timeline