3 final class PhabricatorRepositoryManagementMirrorWorkflow
4 extends PhabricatorRepositoryManagementWorkflow
{
6 protected function didConstruct() {
9 ->setExamples('**mirror** [__options__] __repository__ ...')
11 pht('Push __repository__ to mirrors.'))
16 'help' => pht('Show additional debugging information.'),
25 public function execute(PhutilArgumentParser
$args) {
26 $repos = $this->loadLocalRepositories($args, 'repos');
29 throw new PhutilArgumentUsageException(
31 'Specify one or more repositories to push to mirrors.'));
34 foreach ($repos as $repo) {
38 'Pushing "%s" to mirrors...',
39 $repo->getDisplayName()));
41 $engine = id(new PhabricatorRepositoryMirrorEngine())
42 ->setRepository($repo)
43 ->setVerbose($args->getArg('verbose'))