Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13970397
D14080.id34030.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D14080.id34030.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -7,7 +7,7 @@
*/
return array(
'names' => array(
- 'core.pkg.css' => 'e9f745e2',
+ 'core.pkg.css' => '3fcfaed8',
'core.pkg.js' => '47dc9ebb',
'darkconsole.pkg.js' => 'e7393ebb',
'differential.pkg.css' => '2de124c9',
@@ -104,7 +104,7 @@
'rsrc/css/application/tokens/tokens.css' => '3d0f239e',
'rsrc/css/application/uiexample/example.css' => '528b19de',
'rsrc/css/core/core.css' => 'a76cefc9',
- 'rsrc/css/core/remarkup.css' => 'ef286a6e',
+ 'rsrc/css/core/remarkup.css' => '1c4ac273',
'rsrc/css/core/syntax.css' => '9fd11da8',
'rsrc/css/core/z-index.css' => '57ddcaa2',
'rsrc/css/diviner/diviner-shared.css' => '5a337049',
@@ -737,7 +737,7 @@
'phabricator-object-selector-css' => '85ee8ce6',
'phabricator-phtize' => 'd254d646',
'phabricator-prefab' => '6920d200',
- 'phabricator-remarkup-css' => 'ef286a6e',
+ 'phabricator-remarkup-css' => '1c4ac273',
'phabricator-search-results-css' => '7dea472c',
'phabricator-shaped-request' => '7cbe244b',
'phabricator-side-menu-view-css' => 'bec2458e',
diff --git a/src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php b/src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php
--- a/src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php
+++ b/src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php
@@ -96,25 +96,35 @@
if (!is_array($value)) {
switch ($type) {
case 'set':
+ $command = csprintf(
+ './bin/config set %R %s',
+ $key,
+ '{"value1": true, "value2": true}');
+
$message = sprintf(
- "%s%s\n\n %s\n",
- pht(
- "Config key '%s' is of type '%s'. Specify it in JSON.",
- $key,
- $type),
- pht('For example:'),
- './bin/config set \'{"value1": true, "value2": true}\'');
+ "%s\n\n %s\n",
+ pht(
+ 'Config key "%s" is of type "%s". Specify it in JSON. '.
+ 'For example:',
+ $key,
+ $type),
+ $command);
break;
default:
if (preg_match('/^list</', $type)) {
+ $command = csprintf(
+ './bin/config set %R %s',
+ $key,
+ '["a", "b", "c"]');
+
$message = sprintf(
- "%s%s\n\n %s\n",
+ "%s\n\n %s\n",
pht(
- "Config key '%s' is of type '%s'. Specify it in JSON.",
+ 'Config key "%s" is of type "%s". Specify it in JSON. '.
+ 'For example:',
$key,
$type),
- pht('For example:'),
- './bin/config set \'["a", "b", "c"]\'');
+ $command);
} else {
$message = pht(
'Config key "%s" is of type "%s". Specify it in JSON.',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 18 2024, 7:26 AM (4 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6725598
Default Alt Text
D14080.id34030.diff (3 KB)
Attached To
Mode
D14080: Improve `bin/config set` errors for complex values
Attached
Detach File
Event Timeline
Log In to Comment