Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7188837
ArcanistAnoidWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
ArcanistAnoidWorkflow.php
View Options
<?php
final
class
ArcanistAnoidWorkflow
extends
ArcanistArcWorkflow
{
public
function
getWorkflowName
()
{
return
'anoid'
;
}
public
function
getWorkflowInformation
()
{
$help
=
pht
(
<<<EOTEXT
Take control of a probe launched from the science vessel "Arcanoid".
EOTEXT
);
return
$this
->
newWorkflowInformation
()
->
setSynopsis
(
pht
(
'Pilot a probe from the vessel "Arcanoid".'
))
->
addExample
(
pht
(
'**anoid**'
))
->
setHelp
(
$help
);
}
public
function
getWorkflowArguments
()
{
return
array
();
}
public
function
runWorkflow
()
{
if
(!
Filesystem
::
binaryExists
(
'python3'
))
{
throw
new
PhutilArgumentUsageException
(
pht
(
'The "arc anoid" workflow requires "python3" to be available '
.
'in your $PATH.'
));
}
$support_dir
=
phutil_get_library_root
(
'arcanist'
);
$support_dir
=
dirname
(
$support_dir
);
$support_dir
=
$support_dir
.
'/support/'
;
$bin
=
$support_dir
.
'arcanoid/arcanoid.py'
;
return
phutil_passthru
(
'%R'
,
$bin
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 8, 08:33 (10 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
729221
Default Alt Text
ArcanistAnoidWorkflow.php (1 KB)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment