Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistAnoidWorkflow.php
<?php | <?php | ||||
final class ArcanistAnoidWorkflow extends ArcanistWorkflow { | final class ArcanistAnoidWorkflow | ||||
extends ArcanistWorkflow { | |||||
public function getWorkflowName() { | public function getWorkflowName() { | ||||
return 'anoid'; | return 'anoid'; | ||||
} | } | ||||
public function getCommandSynopses() { | public function getWorkflowInformation() { | ||||
return phutil_console_format(<<<EOTEXT | $help = pht( | ||||
**anoid** | 'Use your skills as a starship pilot to escape from the Arcanoid. '. | ||||
EOTEXT | 'System requirements: a color TTY with character resolution 32x15 or '. | ||||
); | 'greater.'); | ||||
return $this->newWorkflowInformation() | |||||
->setHelp($help); | |||||
} | } | ||||
public function getCommandHelp() { | public function getWorkflowArguments() { | ||||
return phutil_console_format(<<<EOTEXT | return array(); | ||||
There's only one way to find out... | |||||
EOTEXT | |||||
); | |||||
} | } | ||||
public function run() { | public function runWorkflow() { | ||||
phutil_passthru( | $root_path = dirname(phutil_get_library_root('arcanist')); | ||||
'%s/scripts/breakout.py', | $game_path = $root_path.'/scripts/breakout.py'; | ||||
dirname(phutil_get_library_root('arcanist'))); | return phutil_passthru('%s', $game_path); | ||||
} | } | ||||
} | } |