1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 12:00:55 +01:00
phorge-phorge/src/applications/config/management
epriestley d69a6b8490 Improve error messages when specifying bad set or list to bin/config
Summary: Fixes T7308. Multiple users have encountered confusion around how they should specify a set or list in JSON; provide examples.

Test Plan:
```
epriestley@orbital ~/dev/phabricator $ ./bin/config set files.image-mime-types true
Usage Exception: Config key 'files.image-mime-types' is of type 'set'. Specify it in JSON. For example:

    ./bin/config set '{"value1": true, "value2": true}'

epriestley@orbital ~/dev/phabricator $ ./bin/config set cluster.addresses true
Usage Exception: Config key 'cluster.addresses' is of type 'list<string>'. Specify it in JSON. For example:

    ./bin/config set '["a", "b", "c"]'

epriestley@orbital ~/dev/phabricator $
```

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T7308

Differential Revision: https://secure.phabricator.com/D11925
2015-03-02 07:51:19 -08:00
..
PhabricatorConfigManagementDeleteWorkflow.php Config - fix management scripts with --database parameter 2015-01-09 13:58:11 -08:00
PhabricatorConfigManagementGetWorkflow.php Allow config get to work when db is not functional 2014-11-14 09:12:20 -08:00
PhabricatorConfigManagementListWorkflow.php Increase the power of bin/config 2013-01-21 15:27:42 -08:00
PhabricatorConfigManagementMigrateWorkflow.php Config - fix management scripts with --database parameter 2015-01-09 13:58:11 -08:00
PhabricatorConfigManagementSetWorkflow.php Improve error messages when specifying bad set or list to bin/config 2015-03-02 07:51:19 -08:00
PhabricatorConfigManagementWorkflow.php Apply some autofix linter rules 2014-09-10 06:55:05 +10:00