Changeset View
Changeset View
Standalone View
Standalone View
src/config/arc/ArcanistArcConfigurationEngineExtension.php
<?php | <?php | ||||
final class ArcanistArcConfigurationEngineExtension | final class ArcanistArcConfigurationEngineExtension | ||||
extends ArcanistConfigurationEngineExtension { | extends ArcanistConfigurationEngineExtension { | ||||
const EXTENSIONKEY = 'arc'; | const EXTENSIONKEY = 'arc'; | ||||
const KEY_ALIASES = 'aliases'; | const KEY_ALIASES = 'aliases'; | ||||
const KEY_PROMPTS = 'prompts'; | |||||
public function newConfigurationOptions() { | public function newConfigurationOptions() { | ||||
// TOOLSETS: Restore "load", and maybe this other stuff. | // TOOLSETS: Restore "load", and maybe this other stuff. | ||||
/* | /* | ||||
'load' => array( | 'load' => array( | ||||
'type' => 'list', | 'type' => 'list', | ||||
'legacy' => 'phutil_libraries', | 'legacy' => 'phutil_libraries', | ||||
▲ Show 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | return array( | ||||
id(new ArcanistAliasesConfigOption()) | id(new ArcanistAliasesConfigOption()) | ||||
->setKey(self::KEY_ALIASES) | ->setKey(self::KEY_ALIASES) | ||||
->setDefaultValue(array()) | ->setDefaultValue(array()) | ||||
->setSummary(pht('List of command aliases.')) | ->setSummary(pht('List of command aliases.')) | ||||
->setHelp( | ->setHelp( | ||||
pht( | pht( | ||||
'Configured command aliases. Use the "alias" workflow to define '. | 'Configured command aliases. Use the "alias" workflow to define '. | ||||
'aliases.')), | 'aliases.')), | ||||
id(new ArcanistPromptsConfigOption()) | |||||
->setKey(self::KEY_PROMPTS) | |||||
->setDefaultValue(array()) | |||||
->setSummary(pht('List of prompt responses.')) | |||||
->setHelp( | |||||
pht( | |||||
'Configured prompt aliases. Use the "prompts" workflow to '. | |||||
'show prompts and responses.')), | |||||
id(new ArcanistStringListConfigOption()) | id(new ArcanistStringListConfigOption()) | ||||
->setKey('arc.land.onto') | ->setKey('arc.land.onto') | ||||
->setDefaultValue(array()) | ->setDefaultValue(array()) | ||||
->setSummary(pht('Default list of "onto" refs for "arc land".')) | ->setSummary(pht('Default list of "onto" refs for "arc land".')) | ||||
->setHelp( | ->setHelp( | ||||
pht( | pht( | ||||
'Specifies the default behavior when "arc land" is run with '. | 'Specifies the default behavior when "arc land" is run with '. | ||||
'no "--onto" flag.')) | 'no "--onto" flag.')) | ||||
Show All 40 Lines |