Changeset View
Changeset View
Standalone View
Standalone View
src/configuration/ArcanistSettings.php
<?php | <?php | ||||
final class ArcanistSettings extends Phobject { | final class ArcanistSettings extends Phobject { | ||||
private function getOptions() { | private function getOptions() { | ||||
$legacy_builtins = array( | $legacy_builtins = array( | ||||
'default' => array( | 'default' => array( | ||||
'type' => 'string', | 'type' => 'string', | ||||
'help' => pht( | 'help' => pht( | ||||
'The URI of a Phabricator install to connect to by default, if '. | 'The URI of a server to connect to by default, if '. | ||||
'%s is run in a project without a Phabricator URI or run outside '. | '%s is run in a project without a configured URI or run outside '. | ||||
'of a project.', | 'of a project.', | ||||
'arc'), | 'arc'), | ||||
'example' => '"http://phabricator.example.com/"', | 'example' => '"http://devtools.example.com/"', | ||||
), | ), | ||||
'base' => array( | 'base' => array( | ||||
'type' => 'string', | 'type' => 'string', | ||||
'help' => pht( | 'help' => 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.'), | ||||
'example' => '"arc:amended, arc:prompt"', | 'example' => '"arc:amended, arc:prompt"', | ||||
), | ), | ||||
'load' => array( | 'load' => array( | ||||
'type' => 'list', | 'type' => 'list', | ||||
'legacy' => 'phutil_libraries', | 'legacy' => 'phutil_libraries', | ||||
'help' => pht( | 'help' => pht( | ||||
'A list of paths to phutil libraries that should be loaded at '. | 'A list of paths to phutil libraries that should be loaded at '. | ||||
'startup. This can be used to make classes available, like lint '. | 'startup. This can be used to make classes available, like lint '. | ||||
'or unit test engines.'), | 'or unit test engines.'), | ||||
'default' => array(), | 'default' => array(), | ||||
'example' => '["/var/arc/customlib/src"]', | 'example' => '["/var/arc/customlib/src"]', | ||||
), | ), | ||||
'repository.callsign' => array( | 'repository.callsign' => array( | ||||
'type' => 'string', | 'type' => 'string', | ||||
'example' => '"X"', | 'example' => '"X"', | ||||
'help' => pht( | 'help' => pht( | ||||
'Associate the working copy with a specific Phabricator repository. '. | 'Associate the working copy with a specific repository. '. | ||||
'Normally, %s can figure this association out on its own, but if '. | 'Normally, %s can figure this association out on its own, but if '. | ||||
'your setup is unusual you can use this option to tell it what the '. | 'your setup is unusual you can use this option to tell it what the '. | ||||
'desired value is.', | 'desired value is.', | ||||
'arc'), | 'arc'), | ||||
), | ), | ||||
'phabricator.uri' => array( | 'phabricator.uri' => array( | ||||
'type' => 'string', | 'type' => 'string', | ||||
'legacy' => 'conduit_uri', | 'legacy' => 'conduit_uri', | ||||
'example' => '"https://phabricator.mycompany.com/"', | 'example' => '"https://devtools.example.com/"', | ||||
'help' => pht( | 'help' => pht( | ||||
'Associates this working copy with a specific installation of '. | 'Associates this working copy with a specific server.'), | ||||
'Phabricator.'), | |||||
), | ), | ||||
'lint.engine' => array( | 'lint.engine' => array( | ||||
'type' => 'string', | 'type' => 'string', | ||||
'legacy' => 'lint_engine', | 'legacy' => 'lint_engine', | ||||
'help' => pht( | 'help' => pht( | ||||
'The name of a default lint engine to use, if no lint engine is '. | 'The name of a default lint engine to use, if no lint engine is '. | ||||
'specified by the current project.'), | 'specified by the current project.'), | ||||
'example' => '"ExampleLintEngine"', | 'example' => '"ExampleLintEngine"', | ||||
Show All 32 Lines | $legacy_builtins = array( | ||||
'nano', | 'nano', | ||||
'vim', | 'vim', | ||||
'EDITOR'), | 'EDITOR'), | ||||
'example' => '"nano"', | 'example' => '"nano"', | ||||
), | ), | ||||
'https.cabundle' => array( | 'https.cabundle' => array( | ||||
'type' => 'string', | 'type' => 'string', | ||||
'help' => pht( | 'help' => pht( | ||||
"Path to a custom CA bundle file to be used for arcanist's cURL ". | "Path to a custom CA bundle file to be used for cURL calls. ". | ||||
"calls. This is used primarily when your conduit endpoint is ". | "This is used primarily when your conduit endpoint is ". | ||||
"behind HTTPS signed by your organization's internal CA."), | "behind HTTPS signed by your organization's internal CA."), | ||||
'example' => 'support/yourca.pem', | 'example' => 'support/yourca.pem', | ||||
), | ), | ||||
'browser' => array( | 'browser' => array( | ||||
'type' => 'string', | 'type' => 'string', | ||||
'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"', | ||||
), | ), | ||||
'events.listeners' => array( | 'events.listeners' => array( | ||||
'type' => 'list', | 'type' => 'list', | ||||
'help' => pht('List of event listener classes to install at startup.'), | 'help' => pht('List of event listener classes to install at startup.'), | ||||
'default' => array(), | 'default' => array(), | ||||
'example' => '["ExampleEventListener"]', | 'example' => '["ExampleEventListener"]', | ||||
), | ), | ||||
'arc.autostash' => array( | 'arc.autostash' => array( | ||||
'type' => 'bool', | 'type' => 'bool', | ||||
'help' => pht( | 'help' => pht( | ||||
'Whether %s should permit the automatic stashing of changes in the '. | 'Whether %s should permit the automatic stashing of changes in the '. | ||||
'working directory when requiring a clean working copy. This option '. | 'working directory when requiring a clean working copy. This option '. | ||||
'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 operation '. | ||||
'causes an unrecoverable error.', | 'causes an unrecoverable error.', | ||||
'arc'), | 'arc'), | ||||
'default' => false, | 'default' => false, | ||||
'example' => 'false', | 'example' => 'false', | ||||
), | ), | ||||
'aliases' => array( | 'aliases' => array( | ||||
'type' => 'aliases', | 'type' => 'aliases', | ||||
'help' => pht( | 'help' => pht( | ||||
▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines |