Remove product literal strings in "pht()", part 8
[phabricator.git] / src / applications / daemon / management / PhabricatorDaemonManagementListWorkflow.php
blob4598d7ffee3f0abf9dcd128ddb3d388e4ab9f14b
1 <?php
3 final class PhabricatorDaemonManagementListWorkflow
4 extends PhabricatorDaemonManagementWorkflow {
6 protected function didConstruct() {
7 $this
8 ->setName('list')
9 ->setSynopsis(pht('Show a list of available daemons.'))
10 ->setArguments(array());
13 public function execute(PhutilArgumentParser $args) {
14 $console = PhutilConsole::getConsole();
16 $symbols = $this->loadAvailableDaemonClasses();
17 $symbols = igroup($symbols, 'library');
19 foreach ($symbols as $library => $symbol_list) {
20 $console->writeOut(pht('Daemons in library __%s__:', $library)."\n");
21 foreach ($symbol_list as $symbol) {
22 $console->writeOut(" %s\n", $symbol['name']);
24 $console->writeOut("\n");
27 return 0;