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