2013-05-20 19:16:35 +02:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$root = dirname(dirname(dirname(__FILE__)));
|
|
|
|
require_once $root.'/scripts/__init_script__.php';
|
|
|
|
|
|
|
|
$args = new PhutilArgumentParser($argv);
|
2013-11-21 14:59:42 +01:00
|
|
|
$args->setTagline('manage cache');
|
2013-05-20 19:16:35 +02:00
|
|
|
$args->setSynopsis(<<<EOSYNOPSIS
|
|
|
|
**cache** __command__ [__options__]
|
|
|
|
Manage Phabricator caches.
|
|
|
|
|
|
|
|
EOSYNOPSIS
|
|
|
|
);
|
|
|
|
$args->parseStandardArguments();
|
|
|
|
|
2014-06-16 01:00:25 +02:00
|
|
|
$workflows = id(new PhutilSymbolLoader())
|
|
|
|
->setAncestorClass('PhabricatorCacheManagementWorkflow')
|
|
|
|
->loadObjects();
|
|
|
|
$workflows[] = new PhutilHelpArgumentWorkflow();
|
2013-05-20 19:16:35 +02:00
|
|
|
$args->parseWorkflows($workflows);
|