2013-05-14 11:00:56 -07:00
|
|
|
<?php
|
2014-07-09 09:12:13 +10:00
|
|
|
|
2013-05-14 11:00:56 -07:00
|
|
|
/**
|
2014-07-09 09:12:13 +10:00
|
|
|
* Redirects to `arc backout` workflow.
|
2013-05-14 11:00:56 -07:00
|
|
|
*/
|
2014-07-22 07:49:15 +10:00
|
|
|
final class ArcanistRevertWorkflow extends ArcanistWorkflow {
|
2013-05-14 11:00:56 -07:00
|
|
|
|
|
|
|
public function getWorkflowName() {
|
|
|
|
return 'revert';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getCommandSynopses() {
|
|
|
|
return phutil_console_format(<<<EOTEXT
|
|
|
|
**revert**
|
|
|
|
EOTEXT
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getCommandHelp() {
|
|
|
|
return phutil_console_format(<<<EOTEXT
|
|
|
|
Please use arc backout instead
|
|
|
|
EOTEXT
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getArguments() {
|
|
|
|
return array(
|
|
|
|
'*' => 'input',
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function run() {
|
|
|
|
$console = PhutilConsole::getConsole();
|
|
|
|
$console->writeOut("Please use arc backout instead.\n");
|
|
|
|
}
|
2014-07-09 09:12:13 +10:00
|
|
|
|
2013-05-14 11:00:56 -07:00
|
|
|
}
|