Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2894726
PhabricatorRepositoryManagementListWorkflow.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
717 B
Referenced Files
None
Subscribers
None
PhabricatorRepositoryManagementListWorkflow.php
View Options
<?php
final
class
PhabricatorRepositoryManagementListWorkflow
extends
PhabricatorRepositoryManagementWorkflow
{
protected
function
didConstruct
(
)
{
$this
->
setName
(
'list'
)
->
setSynopsis
(
pht
(
'Show a list of repositories.'
)
)
->
setArguments
(
array
(
)
)
;
}
public
function
execute
(
PhutilArgumentParser
$args
)
{
$console
=
PhutilConsole
::
getConsole
(
)
;
$repos
=
id
(
new
PhabricatorRepositoryQuery
(
)
)
->
setViewer
(
$this
->
getViewer
(
)
)
->
execute
(
)
;
if
(
$repos
)
{
foreach
(
$repos
as
$repo
)
{
$console
->
writeOut
(
"%s\n"
,
$repo
->
getMonogram
(
)
)
;
}
}
else
{
$console
->
writeErr
(
"%s\n"
,
pht
(
'There are no repositories.'
)
)
;
}
return
0
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 20:21 (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128400
Default Alt Text
PhabricatorRepositoryManagementListWorkflow.php (717 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment