mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-15 10:00:55 +01:00
8a3d6071a0
Summary: Ref T11818. See that task for a description. This is like a tiny pinch of hackiness but not really unreasonable. Basically, `aphlict` is already an "uber-server" and one copy can handle a ton of instances. Test Plan: Started `bin/aphlict` without a valid database connection. Reviewers: chad Reviewed By: chad Maniphest Tasks: T11818 Differential Revision: https://secure.phabricator.com/D16854
23 lines
653 B
PHP
Executable file
23 lines
653 B
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
|
|
$root = dirname(dirname(dirname(dirname(__FILE__))));
|
|
require_once $root.'/scripts/init/init-aphlict.php';
|
|
|
|
PhabricatorAphlictManagementWorkflow::requireExtensions();
|
|
|
|
$args = new PhutilArgumentParser($argv);
|
|
$args->setTagline(pht('manage Aphlict notification server'));
|
|
$args->setSynopsis(<<<EOSYNOPSIS
|
|
**aphlict** __command__ [__options__]
|
|
Manage the Aphlict server.
|
|
|
|
EOSYNOPSIS
|
|
);
|
|
$args->parseStandardArguments();
|
|
|
|
$workflows = id(new PhutilClassMapQuery())
|
|
->setAncestorClass('PhabricatorAphlictManagementWorkflow')
|
|
->execute();
|
|
$workflows[] = new PhutilHelpArgumentWorkflow();
|
|
$args->parseWorkflows($workflows);
|