mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
e4bb9255be
Summary: Permit the forcible release of Drydock leases. The implementation isn't very exciting for now. Test Plan: Released leases via web and CLI. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T2015 Differential Revision: https://secure.phabricator.com/D4181
25 lines
653 B
PHP
Executable file
25 lines
653 B
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
|
|
$root = dirname(dirname(dirname(__FILE__)));
|
|
require_once $root.'/scripts/__init_script__.php';
|
|
|
|
$args = new PhutilArgumentParser($argv);
|
|
$args->setTagline('manage drydock software resources');
|
|
$args->setSynopsis(<<<EOSYNOPSIS
|
|
**drydock** __commmand__ [__options__]
|
|
Manage Drydock stuff. NEW AND EXPERIMENTAL.
|
|
|
|
EOSYNOPSIS
|
|
);
|
|
$args->parseStandardArguments();
|
|
|
|
$workflows = array(
|
|
new DrydockManagementWaitForLeaseWorkflow(),
|
|
new DrydockManagementLeaseWorkflow(),
|
|
new DrydockManagementCloseWorkflow(),
|
|
new DrydockManagementReleaseWorkflow(),
|
|
new PhutilHelpArgumentWorkflow(),
|
|
);
|
|
|
|
$args->parseWorkflows($workflows);
|