mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 06:42:42 +01:00
Discover workflows automatically.
Summary: Most scripts detect the relevant workflows automatically. Some scripts, however, use a hardcoded list of workflows. Test Plan: Ran `./bin/aphlict`, `./bin/cache` and `./bin/phd`. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9564
This commit is contained in:
parent
a3c8b1e746
commit
97bb13d1d7
3 changed files with 13 additions and 25 deletions
9
scripts/cache/manage_cache.php
vendored
9
scripts/cache/manage_cache.php
vendored
|
@ -14,9 +14,8 @@ EOSYNOPSIS
|
||||||
);
|
);
|
||||||
$args->parseStandardArguments();
|
$args->parseStandardArguments();
|
||||||
|
|
||||||
$workflows = array(
|
$workflows = id(new PhutilSymbolLoader())
|
||||||
new PhabricatorCacheManagementPurgeWorkflow(),
|
->setAncestorClass('PhabricatorCacheManagementWorkflow')
|
||||||
new PhutilHelpArgumentWorkflow(),
|
->loadObjects();
|
||||||
);
|
$workflows[] = new PhutilHelpArgumentWorkflow();
|
||||||
|
|
||||||
$args->parseWorkflows($workflows);
|
$args->parseWorkflows($workflows);
|
||||||
|
|
|
@ -15,16 +15,9 @@ $args->setSynopsis(<<<EOSYNOPSIS
|
||||||
EOSYNOPSIS
|
EOSYNOPSIS
|
||||||
);
|
);
|
||||||
$args->parseStandardArguments();
|
$args->parseStandardArguments();
|
||||||
$workflows = array(
|
|
||||||
new PhabricatorDaemonManagementListWorkflow(),
|
|
||||||
new PhabricatorDaemonManagementStatusWorkflow(),
|
|
||||||
new PhabricatorDaemonManagementStartWorkflow(),
|
|
||||||
new PhabricatorDaemonManagementStopWorkflow(),
|
|
||||||
new PhabricatorDaemonManagementRestartWorkflow(),
|
|
||||||
new PhabricatorDaemonManagementLaunchWorkflow(),
|
|
||||||
new PhabricatorDaemonManagementDebugWorkflow(),
|
|
||||||
new PhabricatorDaemonManagementLogWorkflow(),
|
|
||||||
new PhutilHelpArgumentWorkflow(),
|
|
||||||
);
|
|
||||||
|
|
||||||
|
$workflows = id(new PhutilSymbolLoader())
|
||||||
|
->setAncestorClass('PhabricatorDaemonManagementWorkflow')
|
||||||
|
->loadObjects();
|
||||||
|
$workflows[] = new PhutilHelpArgumentWorkflow();
|
||||||
$args->parseWorkflows($workflows);
|
$args->parseWorkflows($workflows);
|
||||||
|
|
|
@ -16,12 +16,8 @@ EOSYNOPSIS
|
||||||
);
|
);
|
||||||
$args->parseStandardArguments();
|
$args->parseStandardArguments();
|
||||||
|
|
||||||
$args->parseWorkflows(array(
|
$workflows = id(new PhutilSymbolLoader())
|
||||||
new PhabricatorAphlictManagementStatusWorkflow(),
|
->setAncestorClass('PhabricatorAphlictManagementWorkflow')
|
||||||
new PhabricatorAphlictManagementStartWorkflow(),
|
->loadObjects();
|
||||||
new PhabricatorAphlictManagementStopWorkflow(),
|
$workflows[] = new PhutilHelpArgumentWorkflow();
|
||||||
new PhabricatorAphlictManagementRestartWorkflow(),
|
$args->parseWorkflows($workflows);
|
||||||
new PhabricatorAphlictManagementDebugWorkflow(),
|
|
||||||
new PhabricatorAphlictManagementBuildWorkflow(),
|
|
||||||
new PhutilHelpArgumentWorkflow(),
|
|
||||||
));
|
|
||||||
|
|
Loading…
Reference in a new issue