2012-06-18 15:11:19 -07:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$root = dirname(dirname(dirname(dirname(__FILE__))));
|
|
|
|
require_once $root.'/scripts/__init_script__.php';
|
|
|
|
|
2014-06-05 12:13:44 -07:00
|
|
|
PhabricatorAphlictManagementWorkflow::requireExtensions();
|
2012-06-18 15:11:19 -07:00
|
|
|
|
|
|
|
$args = new PhutilArgumentParser($argv);
|
|
|
|
$args->setTagline('manage Aphlict notification server');
|
2014-06-05 12:13:44 -07:00
|
|
|
$args->setSynopsis(<<<EOSYNOPSIS
|
|
|
|
**aphlict** __command__ [__options__]
|
|
|
|
Manage the Aphlict server.
|
2012-06-18 15:11:19 -07:00
|
|
|
|
2014-06-05 12:13:44 -07:00
|
|
|
EOSYNOPSIS
|
|
|
|
);
|
|
|
|
$args->parseStandardArguments();
|
2012-06-18 15:11:19 -07:00
|
|
|
|
2014-06-05 12:13:44 -07:00
|
|
|
$args->parseWorkflows(array(
|
|
|
|
new PhabricatorAphlictManagementStatusWorkflow(),
|
|
|
|
new PhabricatorAphlictManagementStartWorkflow(),
|
|
|
|
new PhabricatorAphlictManagementStopWorkflow(),
|
|
|
|
new PhabricatorAphlictManagementRestartWorkflow(),
|
|
|
|
new PhabricatorAphlictManagementDebugWorkflow(),
|
2014-06-07 11:33:55 -07:00
|
|
|
new PhabricatorAphlictManagementBuildWorkflow(),
|
2014-06-05 12:13:44 -07:00
|
|
|
new PhutilHelpArgumentWorkflow(),
|
|
|
|
));
|