Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14023237
D9645.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D9645.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D9645: Add a `--local` flag for the `./bin/phd status` workflow.
Attached
Detach File
Event Timeline
Log In to Comment