Page MenuHomePhorge

ArcanistAnoidWorkflow.php
No OneTemporary

ArcanistAnoidWorkflow.php

<?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

Mime Type
text/x-php
Expires
Mon, Mar 24, 08:06 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1113632
Default Alt Text
ArcanistAnoidWorkflow.php (1 KB)

Event Timeline