Changeset View
Standalone View
src/config/arc/ArcanistArcConfigurationEngineExtension.php
- This file was added.
<?php | |||||
final class ArcanistArcConfigurationEngineExtension | |||||
extends ArcanistConfigurationEngineExtension { | |||||
const EXTENSIONKEY = 'arc'; | |||||
public function newConfigurationOptions() { | |||||
// TOOLSETS: Restore "load", and maybe this other stuff. | |||||
/* | |||||
'load' => array( | |||||
'type' => 'list', | |||||
'legacy' => 'phutil_libraries', | |||||
'help' => pht( | |||||
'A list of paths to phutil libraries that should be loaded at '. | |||||
'startup. This can be used to make classes available, like lint '. | |||||
'or unit test engines.'), | |||||
'default' => array(), | |||||
'example' => '["/var/arc/customlib/src"]', | |||||
), | |||||
'arc.feature.start.default' => array( | |||||
'type' => 'string', | |||||
'help' => pht( | |||||
'The name of the default branch to create the new feature branch '. | |||||
'off of.'), | |||||
'example' => '"develop"', | |||||
), | |||||
'arc.land.onto.default' => array( | |||||
'type' => 'string', | |||||
'help' => pht( | |||||
'The name of the default branch to land changes onto when '. | |||||
'`%s` is run.', | |||||
'arc land'), | |||||
'example' => '"develop"', | |||||
), | |||||
'arc.autostash' => array( | |||||
'type' => 'bool', | |||||
'help' => pht( | |||||
'Whether %s should permit the automatic stashing of changes in the '. | |||||
'working directory when requiring a clean working copy. This option '. | |||||
'should only be used when users understand how to restore their '. | |||||
'working directory from the local stash if an Arcanist operation '. | |||||
'causes an unrecoverable error.', | |||||
'arc'), | |||||
'default' => false, | |||||
'example' => 'false', | |||||
), | |||||
'aliases' => array( | |||||
'type' => 'aliases', | |||||
'help' => pht( | |||||
'Configured command aliases. Use "arc alias" to define aliases.'), | |||||
), | |||||
'history.immutable' => array( | |||||
'type' => 'bool', | |||||
'legacy' => 'immutable_history', | |||||
'help' => pht( | |||||
'If true, %s will never change repository history (e.g., through '. | |||||
'amending or rebasing). Defaults to true in Mercurial and false in '. | |||||
'Git. This setting has no effect in Subversion.', | |||||
'arc'), | |||||
'example' => 'false', | |||||
), | |||||
'editor' => array( | |||||
'type' => 'string', | |||||
'help' => pht( | |||||
'Command to use to invoke an interactive editor, like `%s` or `%s`. '. | |||||
'This setting overrides the %s environmental variable.', | |||||
'nano', | |||||
'vim', | |||||
'EDITOR'), | |||||
'example' => '"nano"', | |||||
), | |||||
'https.cabundle' => array( | |||||
'type' => 'string', | |||||
'help' => pht( | |||||
"Path to a custom CA bundle file to be used for arcanist's cURL ". | |||||
"calls. This is used primarily when your conduit endpoint is ". | |||||
"behind HTTPS signed by your organization's internal CA."), | |||||
'example' => 'support/yourca.pem', | |||||
), | |||||
'https.blindly-trust-domains' => array( | |||||
'type' => 'list', | |||||
'help' => pht( | |||||
'List of domains to blindly trust SSL certificates for. '. | |||||
'Disables peer verification.'), | |||||
'default' => array(), | |||||
'example' => '["secure.mycompany.com"]', | |||||
), | |||||
'browser' => array( | |||||
'type' => 'string', | |||||
'help' => pht('Command to use to invoke a web browser.'), | |||||
'example' => '"gnome-www-browser"', | |||||
), | |||||
'http.basicauth.user' => array( | |||||
'type' => 'string', | |||||
'help' => pht('Username to use for basic auth over HTTP transports.'), | |||||
'example' => '"bob"', | |||||
), | |||||
'http.basicauth.pass' => array( | |||||
'type' => 'string', | |||||
'help' => pht('Password to use for basic auth over HTTP transports.'), | |||||
'example' => '"bobhasasecret"', | |||||
), | |||||
amckinley: For consistency with other documentation, please update this example password to `hunter2`. | |||||
Done Inline Actionshaha yes I was completely planning to do this However, I've just removed this completely since it was only used if your entire install required HTTP basic auth for access, which is fairly bizarre and git blame suggests affected ~1 install in like 2012. If you do have a configuration like this for some reason, you should be able to whitelist Conduit in your Apache config or use HTTPEngineExtensions now. epriestley: haha yes I was completely planning to do this
However, I've just removed this completely since… | |||||
*/ | |||||
return array( | |||||
id(new ArcanistStringConfigOption()) | |||||
->setKey('base') | |||||
->setSummary(pht('Ruleset for selecting commit ranges.')) | |||||
->setHelp( | |||||
pht( | |||||
'Base commit ruleset to invoke when determining the start of a '. | |||||
'commit range. See "Arcanist User Guide: Commit Ranges" for '. | |||||
'details.')) | |||||
Not Done Inline ActionsI just created https://phurl.io/u/commitRanges if you want to put a URL in here. amckinley: I just created https://phurl.io/u/commitRanges if you want to put a URL in here. | |||||
Done Inline ActionsI was mostly just copying this as previously written, but am considering maybe doing arc help ranges something, which has a short refresher and a link to the web ("Read More: ...")? There's currently no way to add arbitrary topics to help but it seems like a reasonable sort of thing to do. Maybe this just becomes arc guide ranges and help keeps its current behavior. Not totally sure yet, but I think we can probably do better than just mentioning the article names. epriestley: I was mostly just copying this as previously written, but am considering maybe doing `arc help… | |||||
->setExamples( | |||||
array( | |||||
'arc:amended, arc:prompt', | |||||
)), | |||||
id(new ArcanistStringConfigOption()) | |||||
->setKey('repository') | |||||
->setAliases( | |||||
array( | |||||
'repository.callsign', | |||||
)) | |||||
->setSummary(pht('Repository for the current working copy.')) | |||||
->setHelp( | |||||
pht( | |||||
'Associate the working copy with a specific Phabricator '. | |||||
'repository. Normally, `arc` can figure this association out on '. | |||||
'its own, but if your setup is unusual you can use this option '. | |||||
'to tell it what the desired value is.')) | |||||
->setExamples( | |||||
array( | |||||
'libexample', | |||||
'XYZ', | |||||
'R123', | |||||
'123', | |||||
)), | |||||
id(new ArcanistStringConfigOption()) | |||||
->setKey('phabricator.uri') | |||||
->setAliases( | |||||
array( | |||||
'conduit_uri', | |||||
'default', | |||||
)) | |||||
->setSummary(pht('Phabricator install to connect to.')) | |||||
->setHelp( | |||||
pht( | |||||
'Associates this working copy with a specific installation of '. | |||||
'Phabricator.')) | |||||
->setExamples( | |||||
array( | |||||
'https://phabricator.mycompany.com/', | |||||
)), | |||||
); | |||||
} | |||||
} |
For consistency with other documentation, please update this example password to hunter2.