Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F70412751
PhabricatorRepositoryManagementPullWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jul 6, 18:14
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Jul 8, 18:14 (2 d)
Engine
blob
Format
Raw Data
Handle
18838163
Attached To
rPH Phabricator
PhabricatorRepositoryManagementPullWorkflow.php
View Options
<?php
final
class
PhabricatorRepositoryManagementPullWorkflow
extends
PhabricatorRepositoryManagementWorkflow
{
protected
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
;
}
}
Event Timeline
Log In to Comment