Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2890396
phage.php
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
832 B
Referenced Files
None
Subscribers
None
phage.php
View Options
#!/usr/bin/env php
<?php
require_once
dirname
(
__FILE__
)
.
'/__init_script__.php'
;
ini_set
(
'memory_limit'
,
-
1
)
;
$args
=
new
PhutilArgumentParser
(
$argv
)
;
$args
->
parseStandardArguments
(
)
;
$args
->
parsePartial
(
array
(
)
)
;
// TODO: This is pretty minimal and should be shared with "arc".
$working_directory
=
getcwd
(
)
;
$working_copy
=
ArcanistWorkingCopyIdentity
::
newFromPath
(
$working_directory
)
;
$config
=
id
(
new
ArcanistConfigurationManager
(
)
)
->
setWorkingCopyIdentity
(
$working_copy
)
;
foreach
(
$config
->
getProjectConfig
(
'load'
)
as
$load
)
{
$load
=
Filesystem
::
resolvePath
(
$working_copy
->
getProjectRoot
(
)
.
'/'
.
$load
)
;
phutil_load_library
(
$load
)
;
}
$workflows
=
id
(
new
PhutilClassMapQuery
(
)
)
->
setAncestorClass
(
'PhageWorkflow'
)
->
execute
(
)
;
$workflows
[
]
=
new
PhutilHelpArgumentWorkflow
(
)
;
$args
->
parseWorkflows
(
$workflows
)
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 19, 13:31 (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1125084
Default Alt Text
phage.php (832 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment