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'; | |||||
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', | ||||
'help' => pht( | 'help' => pht( | ||||
Show All 28 Lines | /* | ||||
'should only be used when users understand how to restore their '. | 'should only be used when users understand how to restore their '. | ||||
'working directory from the local stash if an Arcanist operation '. | 'working directory from the local stash if an Arcanist operation '. | ||||
'causes an unrecoverable error.', | 'causes an unrecoverable error.', | ||||
'arc'), | 'arc'), | ||||
'default' => false, | 'default' => false, | ||||
'example' => 'false', | 'example' => 'false', | ||||
), | ), | ||||
'aliases' => array( | |||||
'type' => 'aliases', | |||||
'help' => pht( | |||||
'Configured command aliases. Use "arc alias" to define aliases.'), | |||||
), | |||||
'history.immutable' => array( | 'history.immutable' => array( | ||||
'type' => 'bool', | 'type' => 'bool', | ||||
'legacy' => 'immutable_history', | 'legacy' => 'immutable_history', | ||||
'help' => pht( | 'help' => pht( | ||||
'If true, %s will never change repository history (e.g., through '. | 'If true, %s will never change repository history (e.g., through '. | ||||
'amending or rebasing). Defaults to true in Mercurial and false in '. | 'amending or rebasing). Defaults to true in Mercurial and false in '. | ||||
'Git. This setting has no effect in Subversion.', | 'Git. This setting has no effect in Subversion.', | ||||
'arc'), | 'arc'), | ||||
▲ Show 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | return array( | ||||
->setHelp( | ->setHelp( | ||||
pht( | pht( | ||||
'Associates this working copy with a specific installation of '. | 'Associates this working copy with a specific installation of '. | ||||
'Phabricator.')) | 'Phabricator.')) | ||||
->setExamples( | ->setExamples( | ||||
array( | array( | ||||
'https://phabricator.mycompany.com/', | 'https://phabricator.mycompany.com/', | ||||
)), | )), | ||||
id(new ArcanistAliasesConfigOption()) | |||||
->setKey(self::KEY_ALIASES) | |||||
->setDefaultValue(array()) | |||||
->setSummary(pht('List of command aliases.')) | |||||
->setHelp( | |||||
pht( | |||||
'Configured command aliases. Use the "alias" workflow to define '. | |||||
'aliases.')), | |||||
); | ); | ||||
} | } | ||||
} | } |