Changeset View
Changeset View
Standalone View
Standalone View
src/toolset/workflow/ArcanistAliasWorkflow.php
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
You can not overwrite the behavior of builtin workflows, including "alias" | You can not overwrite the behavior of builtin workflows, including "alias" | ||||
itself, and if you install a new workflow it will take precedence over any | itself, and if you install a new workflow it will take precedence over any | ||||
existing aliases with the same name. | existing aliases with the same name. | ||||
EOTEXT | EOTEXT | ||||
); | ); | ||||
return $this->newWorkflowInformation() | return $this->newWorkflowInformation() | ||||
->setSynopsis( | |||||
pht('Create and modify command aliases.')) | |||||
->addExample(pht('**alias**')) | ->addExample(pht('**alias**')) | ||||
->addExample(pht('**alias** __command__')) | ->addExample(pht('**alias** __command__ __target__ -- [__arguments__]')) | ||||
->addExample(pht('**alias** __command__ __target__ -- [__options__]')) | |||||
->setHelp($help); | ->setHelp($help); | ||||
} | } | ||||
public function getWorkflowArguments() { | public function getWorkflowArguments() { | ||||
return array( | return array( | ||||
$this->newWorkflowArgument('json') | $this->newWorkflowArgument('json') | ||||
->setHelp(pht('Output aliases in JSON format.')), | ->setHelp(pht('Output aliases in JSON format.')), | ||||
$this->newWorkflowArgument('argv') | $this->newWorkflowArgument('argv') | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |