Changeset View
Changeset View
Standalone View
Standalone View
src/config/arc/ArcanistArcConfigurationEngineExtension.php
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | /* | ||||
'help' => pht('Command to use to invoke a web browser.'), | 'help' => pht('Command to use to invoke a web browser.'), | ||||
'example' => '"gnome-www-browser"', | 'example' => '"gnome-www-browser"', | ||||
), | ), | ||||
*/ | */ | ||||
return array( | return array( | ||||
id(new ArcanistStringConfigOption()) | (new ArcanistStringConfigOption()) | ||||
->setKey('base') | ->setKey('base') | ||||
->setSummary(pht('Ruleset for selecting commit ranges.')) | ->setSummary(pht('Ruleset for selecting commit ranges.')) | ||||
->setHelp( | ->setHelp( | ||||
pht( | pht( | ||||
'Base commit ruleset to invoke when determining the start of a '. | 'Base commit ruleset to invoke when determining the start of a '. | ||||
'commit range. See "Arcanist User Guide: Commit Ranges" for '. | 'commit range. See "Arcanist User Guide: Commit Ranges" for '. | ||||
'details.')) | 'details.')) | ||||
->setExamples( | ->setExamples( | ||||
array( | array( | ||||
'arc:amended, arc:prompt', | 'arc:amended, arc:prompt', | ||||
)), | )), | ||||
id(new ArcanistStringConfigOption()) | (new ArcanistStringConfigOption()) | ||||
->setKey('repository') | ->setKey('repository') | ||||
->setAliases( | ->setAliases( | ||||
array( | array( | ||||
'repository.callsign', | 'repository.callsign', | ||||
)) | )) | ||||
->setSummary(pht('Repository for the current working copy.')) | ->setSummary(pht('Repository for the current working copy.')) | ||||
->setHelp( | ->setHelp( | ||||
pht( | pht( | ||||
'Associate the working copy with a specific repository. Normally, '. | 'Associate the working copy with a specific repository. Normally, '. | ||||
'this association can be determined automatically, but if your '. | 'this association can be determined automatically, but if your '. | ||||
'setup is unusual you can use this option to tell it what the '. | 'setup is unusual you can use this option to tell it what the '. | ||||
'desired value is.')) | 'desired value is.')) | ||||
->setExamples( | ->setExamples( | ||||
array( | array( | ||||
'libexample', | 'libexample', | ||||
'XYZ', | 'XYZ', | ||||
'R123', | 'R123', | ||||
'123', | '123', | ||||
)), | )), | ||||
id(new ArcanistStringConfigOption()) | (new ArcanistStringConfigOption()) | ||||
->setKey('phabricator.uri') | ->setKey('phabricator.uri') | ||||
->setAliases( | ->setAliases( | ||||
array( | array( | ||||
'conduit_uri', | 'conduit_uri', | ||||
'default', | 'default', | ||||
)) | )) | ||||
->setSummary(pht('Server to connect to.')) | ->setSummary(pht('Server to connect to.')) | ||||
->setHelp( | ->setHelp( | ||||
pht( | pht( | ||||
'Associates this working copy with a specific installation of '. | 'Associates this working copy with a specific installation of '. | ||||
'%s (or compatible software).', | '%s (or compatible software).', | ||||
PlatformSymbols::getPlatformServerName())) | PlatformSymbols::getPlatformServerName())) | ||||
->setExamples( | ->setExamples( | ||||
array( | array( | ||||
'https://devtools.example.com/', | 'https://devtools.example.com/', | ||||
)), | )), | ||||
id(new ArcanistAliasesConfigOption()) | (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()) | (new ArcanistPromptsConfigOption()) | ||||
->setKey(self::KEY_PROMPTS) | ->setKey(self::KEY_PROMPTS) | ||||
->setDefaultValue(array()) | ->setDefaultValue(array()) | ||||
->setSummary(pht('List of prompt responses.')) | ->setSummary(pht('List of prompt responses.')) | ||||
->setHelp( | ->setHelp( | ||||
pht( | pht( | ||||
'Configured prompt aliases. Use the "prompts" workflow to '. | 'Configured prompt aliases. Use the "prompts" workflow to '. | ||||
'show prompts and responses.')), | 'show prompts and responses.')), | ||||
id(new ArcanistStringListConfigOption()) | (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.')) | ||||
->setExamples( | ->setExamples( | ||||
array( | array( | ||||
'["master"]', | '["master"]', | ||||
)), | )), | ||||
id(new ArcanistStringListConfigOption()) | (new ArcanistStringListConfigOption()) | ||||
->setKey('pager') | ->setKey('pager') | ||||
->setDefaultValue(array()) | ->setDefaultValue(array()) | ||||
->setSummary(pht('Default pager command.')) | ->setSummary(pht('Default pager command.')) | ||||
->setHelp( | ->setHelp( | ||||
pht( | pht( | ||||
'Specify the pager command to use when displaying '. | 'Specify the pager command to use when displaying '. | ||||
'documentation.')) | 'documentation.')) | ||||
->setExamples( | ->setExamples( | ||||
array( | array( | ||||
'["less", "-R", "--"]', | '["less", "-R", "--"]', | ||||
)), | )), | ||||
id(new ArcanistStringConfigOption()) | (new ArcanistStringConfigOption()) | ||||
->setKey('arc.land.onto-remote') | ->setKey('arc.land.onto-remote') | ||||
->setSummary(pht('Default list of "onto" remote for "arc land".')) | ->setSummary(pht('Default list of "onto" remote 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-remote" flag.')) | 'no "--onto-remote" flag.')) | ||||
->setExamples( | ->setExamples( | ||||
array( | array( | ||||
'origin', | 'origin', | ||||
)), | )), | ||||
id(new ArcanistStringConfigOption()) | (new ArcanistStringConfigOption()) | ||||
->setKey('arc.land.strategy') | ->setKey('arc.land.strategy') | ||||
->setSummary( | ->setSummary( | ||||
pht( | pht( | ||||
'Configure a default merge strategy for "arc land".')) | 'Configure a default merge strategy 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 "--strategy" flag.')), | 'no "--strategy" flag.')), | ||||
); | ); | ||||
} | } | ||||
} | } |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0