mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 07:12:41 +01:00
8103d36177
Summary: Ref PHI2157. Like other low-level tools, "bin/celerity" does not need databases configured in order to execute. Test Plan: Ran `bin/celerity map` with and without the database available. Differential Revision: https://secure.phabricator.com/D21730
21 lines
552 B
PHP
Executable file
21 lines
552 B
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
|
|
$root = dirname(dirname(dirname(__FILE__)));
|
|
require_once $root.'/scripts/init/init-setup.php';
|
|
|
|
$args = new PhutilArgumentParser($argv);
|
|
$args->setTagline(pht('manage celerity'));
|
|
$args->setSynopsis(<<<EOSYNOPSIS
|
|
**celerity** __command__ [__options__]
|
|
Manage static resources.
|
|
|
|
EOSYNOPSIS
|
|
);
|
|
$args->parseStandardArguments();
|
|
|
|
$workflows = id(new PhutilClassMapQuery())
|
|
->setAncestorClass('CelerityManagementWorkflow')
|
|
->execute();
|
|
$workflows[] = new PhutilHelpArgumentWorkflow();
|
|
$args->parseWorkflows($workflows);
|