Page MenuHomePhabricator

Does ./bin/config support setting arrays?
Closed, ResolvedPublic

Asked by devurandom on Sep 8 2015, 2:40 PM.

Details

Is it possible to set arrays with ./bin/config?

I tried:

./bin/config set load-libraries ext-a/src/ ext-b/src/
./bin/config set load-libraries \[ ext-a/src/, ext-b/src/ \]

and variations, but always get:

Usage Exception: Too many arguments: expected one key and one value.

Quickly scanning over the code of PhutilArgumentParser.php didn't give me any clue.

The follow-up question to this will probably be: Does it support maps? (e.g. for uri.allowed-protocols and files.image-mime-types)

Answers

epriestley
Updated 3,145 Days Ago

$ ./bin/config set load-libraries x
Usage Exception: Config key 'load-libraries' is of type 'list<string>'. Specify it in JSON.For example:

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

New Answer

Answer

This question has been marked as closed, but you can still leave a new answer.