Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14008430
D7851.id17826.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7851.id17826.diff
View Options
Index: src/workflow/ArcanistSetConfigWorkflow.php
===================================================================
--- src/workflow/ArcanistSetConfigWorkflow.php
+++ src/workflow/ArcanistSetConfigWorkflow.php
@@ -125,7 +125,7 @@
}
private function show() {
- $config = $this->getConfigurationManager()->readUserArcConfig();
+ $config_manager = $this->getConfigurationManager();
$settings = new ArcanistSettings();
@@ -136,7 +136,11 @@
$example = $settings->getExample($key);
$help = $settings->getHelp($key);
- $value = idx($config, $key);
+ $config = $config_manager->getConfigFromAllSources($key);
+
+ $source = head_key($config);
+
+ $value = head($config);
$value = $settings->formatConfigValueForDisplay($key, $value);
echo phutil_console_format("**__%s__** (%s)\n\n", $key, $type);
@@ -144,7 +148,13 @@
echo phutil_console_format(" Example: %s\n", $example);
}
if (strlen($value)) {
- echo phutil_console_format(" User Setting: %s\n", $value);
+ if (strlen($source)) {
+ $source = pht('(from %s config)', $source);
+ }
+ echo phutil_console_format(
+ " Current Setting: %s %s\n",
+ $value,
+ $source);
}
echo "\n";
echo phutil_console_wrap($help, 4);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 30, 9:16 PM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6754758
Default Alt Text
D7851.id17826.diff (1 KB)
Attached To
Mode
D7851: Show current config and source using arc set-config --show
Attached
Detach File
Event Timeline
Log In to Comment