[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorRepositoryManagementPullWorkflow 4 extends PhabricatorRepositoryManagementWorkflow { 5 6 public function didConstruct() { 7 $this 8 ->setName('pull') 9 ->setExamples('**pull** __repository__ ...') 10 ->setSynopsis('Pull __repository__, named by callsign.') 11 ->setArguments( 12 array( 13 array( 14 'name' => 'verbose', 15 'help' => 'Show additional debugging information.', 16 ), 17 array( 18 'name' => 'repos', 19 'wildcard' => true, 20 ), 21 )); 22 } 23 24 public function execute(PhutilArgumentParser $args) { 25 $repos = $this->loadRepositories($args, 'repos'); 26 27 if (!$repos) { 28 throw new PhutilArgumentUsageException( 29 'Specify one or more repositories to pull, by callsign.'); 30 } 31 32 $console = PhutilConsole::getConsole(); 33 foreach ($repos as $repo) { 34 $console->writeOut("Pulling '%s'...\n", $repo->getCallsign()); 35 36 id(new PhabricatorRepositoryPullEngine()) 37 ->setRepository($repo) 38 ->setVerbose($args->getArg('verbose')) 39 ->pullRepository(); 40 } 41 42 $console->writeOut("Done.\n"); 43 44 return 0; 45 } 46 47 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |