mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-01-08 22:01:02 +01:00
40 lines
811 B
PHP
40 lines
811 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Alias for arc feature
|
||
|
*
|
||
|
* @group workflow
|
||
|
*/
|
||
|
final class ArcanistBookmarkWorkflow extends ArcanistFeatureWorkflow {
|
||
|
|
||
|
public function getWorkflowName() {
|
||
|
return 'bookmark';
|
||
|
}
|
||
|
|
||
|
public function getCommandSynopses() {
|
||
|
return phutil_console_format(<<<EOTEXT
|
||
|
**bookmark** [__options__]
|
||
|
**bookmark** __name__ [__start__]
|
||
|
EOTEXT
|
||
|
);
|
||
|
}
|
||
|
|
||
|
public function getCommandHelp() {
|
||
|
return phutil_console_format(<<<EOTEXT
|
||
|
Supports: hg
|
||
|
Alias for arc feature.
|
||
|
EOTEXT
|
||
|
);
|
||
|
}
|
||
|
|
||
|
public function run() {
|
||
|
$repository_api = $this->getRepositoryAPI();
|
||
|
if (!($repository_api instanceof ArcanistMercurialAPI)) {
|
||
|
throw new ArcanistUsageException(
|
||
|
'arc bookmark is only supported under Mercurial.');
|
||
|
}
|
||
|
return parent::run();
|
||
|
}
|
||
|
|
||
|
}
|