Page MenuHomePhabricator

D14080.id34028.diff
No OneTemporary

D14080.id34028.diff

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

Mime Type
text/plain
Expires
Fri, Sep 20, 1:12 PM (16 h, 39 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6621263
Default Alt Text
D14080.id34028.diff (3 KB)

Event Timeline