[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/bin/ -> phd (source)

   1  #!/usr/bin/env php
   2  <?php
   3  
   4  $root = dirname(dirname(dirname(__FILE__)));
   5  require_once $root.'/scripts/__init_script__.php';
   6  
   7  PhabricatorDaemonManagementWorkflow::requireExtensions();
   8  
   9  $args = new PhutilArgumentParser($argv);
  10  $args->setTagline('manage daemons');
  11  $args->setSynopsis(<<<EOSYNOPSIS
  12  **phd** __command__ [__options__]
  13      Manage Phabricator daemons.
  14  
  15  EOSYNOPSIS
  16    );
  17  $args->parseStandardArguments();
  18  
  19  $workflows = id(new PhutilSymbolLoader())
  20    ->setAncestorClass('PhabricatorDaemonManagementWorkflow')
  21    ->loadObjects();
  22  $workflows[] = new PhutilHelpArgumentWorkflow();
  23  $args->parseWorkflows($workflows);


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1