mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-25 08:12:40 +01:00
61e059984a
Summary: Ref T13395. Currently, "phage" is required for various cluster operations. Bring the working code out of "experimental". This isn't the final form; "wilds" has a fancier version. Test Plan: Ran phage workflows against the cluster. Maniphest Tasks: T13395 Differential Revision: https://secure.phabricator.com/D20982
29 lines
832 B
PHP
Executable file
29 lines
832 B
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
|
|
require_once dirname(__FILE__).'/__init_script__.php';
|
|
ini_set('memory_limit', -1);
|
|
|
|
$args = new PhutilArgumentParser($argv);
|
|
$args->parseStandardArguments();
|
|
|
|
$args->parsePartial(array());
|
|
|
|
|
|
// TODO: This is pretty minimal and should be shared with "arc".
|
|
$working_directory = getcwd();
|
|
$working_copy = ArcanistWorkingCopyIdentity::newFromPath($working_directory);
|
|
$config = id(new ArcanistConfigurationManager())
|
|
->setWorkingCopyIdentity($working_copy);
|
|
|
|
foreach ($config->getProjectConfig('load') as $load) {
|
|
$load = Filesystem::resolvePath($working_copy->getProjectRoot().'/'.$load);
|
|
phutil_load_library($load);
|
|
}
|
|
|
|
|
|
$workflows = id(new PhutilClassMapQuery())
|
|
->setAncestorClass('PhageWorkflow')
|
|
->execute();
|
|
$workflows[] = new PhutilHelpArgumentWorkflow();
|
|
$args->parseWorkflows($workflows);
|