Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79332105
PhabricatorDaemonManagementListWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Aug 25, 21:16
Size
770 B
Mime Type
text/x-php
Expires
Tue, Aug 27, 21:16 (2 d)
Engine
blob
Format
Raw Data
Handle
20174759
Attached To
rPH Phabricator
PhabricatorDaemonManagementListWorkflow.php
View Options
<?php
final
class
PhabricatorDaemonManagementListWorkflow
extends
PhabricatorDaemonManagementWorkflow
{
public
function
didConstruct
()
{
$this
->
setName
(
'list'
)
->
setSynopsis
(
pht
(
'Show a list of available daemons.'
))
->
setArguments
(
array
());
}
public
function
execute
(
PhutilArgumentParser
$args
)
{
$console
=
PhutilConsole
::
getConsole
();
$symbols
=
$this
->
loadAvailableDaemonClasses
();
$symbols
=
igroup
(
$symbols
,
'library'
);
foreach
(
$symbols
as
$library
=>
$symbol_list
)
{
$console
->
writeOut
(
pht
(
"Daemons in library __%s__:"
,
$library
).
"
\n
"
);
foreach
(
$symbol_list
as
$symbol
)
{
$console
->
writeOut
(
" %s
\n
"
,
$symbol
[
'name'
]);
}
$console
->
writeOut
(
"
\n
"
);
}
return
0
;
}
}
Event Timeline
Log In to Comment