Changeset View
Changeset View
Standalone View
Standalone View
src/configuration/ArcanistSettings.php
| <?php | <?php | ||||
| /** | |||||
| * @group config | |||||
| */ | |||||
| final class ArcanistSettings { | final class ArcanistSettings { | ||||
| private function getOptions() { | private function getOptions() { | ||||
| return array( | return array( | ||||
| 'default' => array( | 'default' => array( | ||||
| 'type' => 'string', | 'type' => 'string', | ||||
| 'help' => | 'help' => | ||||
| 'The URI of a Phabricator install to connect to by default, if '. | 'The URI of a Phabricator install to connect to by default, if '. | ||||
| ▲ Show 20 Lines • Show All 148 Lines • ▼ Show 20 Lines | return array( | ||||
| 'help' => | 'help' => | ||||
| 'Password to use for basic auth over http transports', | 'Password to use for basic auth over http transports', | ||||
| 'example' => '"bobhasasecret"', | 'example' => '"bobhasasecret"', | ||||
| ), | ), | ||||
| 'arc.autostash' => array( | 'arc.autostash' => array( | ||||
| 'type' => 'bool', | 'type' => 'bool', | ||||
| 'help' => | 'help' => | ||||
| 'Whether arc should permit the automatic stashing of changes in '. | 'Whether arc should permit the automatic stashing of changes in '. | ||||
| 'the working directory when requiring a clean working copy. '. | 'the working directory when requiring a clean working copy. '. | ||||
| 'This option should only be used when users understand how '. | 'This option should only be used when users understand how '. | ||||
| 'to restore their working directory from the local stash if '. | 'to restore their working directory from the local stash if '. | ||||
| 'an Arcanist operation causes an unrecoverable error.', | 'an Arcanist operation causes an unrecoverable error.', | ||||
| 'example' => 'false', | 'example' => 'false', | ||||
| 'default' => false, | 'default' => false, | ||||
| ), | ), | ||||
| ); | ); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 145 Lines • ▼ Show 20 Lines | if (is_array($value)) { | ||||
| // optimistically unescape it for display to improve readability. | // optimistically unescape it for display to improve readability. | ||||
| $value = preg_replace('@(?<!\\\\)\\\\/@', '/', $value); | $value = preg_replace('@(?<!\\\\)\\\\/@', '/', $value); | ||||
| return $value; | return $value; | ||||
| } | } | ||||
| return $value; | return $value; | ||||
| } | } | ||||
| } | } | ||||