mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 00:02:41 +01:00
f5ca647d2c
Summary: Ref T4039. This is mostly to deal with that, to prevent the security issues associated with mutable local paths. The next diff will lock them in the web UI. I also added a confirmation prompt to `bin/repository delete`, which was a little scary without one. See one comment inline about the `--as` flag. I don't love this, but when I started adding all the stuff we'd need to let this transaction show up as "Administrator" it quickly got pretty big. Test Plan: Ran `bin/repository edit ...`, saw an edit with a transaction show up on the web UI. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T4039 Differential Revision: https://secure.phabricator.com/D7579
29 lines
911 B
PHP
Executable file
29 lines
911 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 repositories');
|
|
$args->setSynopsis(<<<EOSYNOPSIS
|
|
**repository** __command__ [__options__]
|
|
Manage and debug Phabricator repository configuration, tracking,
|
|
discovery and import.
|
|
|
|
EOSYNOPSIS
|
|
);
|
|
$args->parseStandardArguments();
|
|
|
|
$workflows = array(
|
|
new PhabricatorRepositoryManagementPullWorkflow(),
|
|
new PhabricatorRepositoryManagementDiscoverWorkflow(),
|
|
new PhabricatorRepositoryManagementEditWorkflow(),
|
|
new PhabricatorRepositoryManagementListWorkflow(),
|
|
new PhabricatorRepositoryManagementDeleteWorkflow(),
|
|
new PhabricatorRepositoryManagementMarkImportedWorkflow(),
|
|
new PhabricatorRepositoryManagementImportingWorkflow(),
|
|
new PhutilHelpArgumentWorkflow(),
|
|
);
|
|
|
|
$args->parseWorkflows($workflows);
|