Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4852334
PhabricatorRepositoryManagementPullWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorRepositoryManagementPullWorkflow.php
View Options
<?php
final
class
PhabricatorRepositoryManagementPullWorkflow
extends
PhabricatorRepositoryManagementWorkflow
{
public
function
didConstruct
(
)
{
$this
->
setName
(
'pull'
)
->
setExamples
(
'**pull** __repository__ ...'
)
->
setSynopsis
(
'Pull __repository__, named by callsign.'
)
->
setArguments
(
array
(
array
(
'name'
=>
'verbose'
,
'help'
=>
'Show additional debugging information.'
,
)
,
array
(
'name'
=>
'repos'
,
'wildcard'
=>
true
,
)
,
)
)
;
}
public
function
execute
(
PhutilArgumentParser
$args
)
{
$repos
=
$this
->
loadRepositories
(
$args
,
'repos'
)
;
if
(
!
$repos
)
{
throw
new
PhutilArgumentUsageException
(
"Specify one or more repositories to pull, by callsign."
)
;
}
$console
=
PhutilConsole
::
getConsole
(
)
;
foreach
(
$repos
as
$repo
)
{
$console
->
writeOut
(
"Pulling '%s'...\n"
,
$repo
->
getCallsign
(
)
)
;
id
(
new
PhabricatorRepositoryPullEngine
(
)
)
->
setRepository
(
$repo
)
->
setVerbose
(
$args
->
getArg
(
'verbose'
)
)
->
pullRepository
(
)
;
}
$console
->
writeOut
(
"Done.\n"
)
;
return
0
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 9, 06:27 (23 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1768420
Default Alt Text
PhabricatorRepositoryManagementPullWorkflow.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment