Fixes T7308. Multiple users have encountered confusion around how they should specify a set or list in JSON; provide examples.
Details
Details
- Reviewers
btrahan chad - Maniphest Tasks
- T7308: Show users an example of a set or list when rejecting them from `bin/config`
- Commits
- Restricted Diffusion Commit
rPd69a6b8490a5: Improve error messages when specifying bad set or list to bin/config
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 $
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Not Applicable - Unit
Tests Not Applicable