Closed ssato closed 5 years ago
It should work by some recent commits such as 30680e7. Here is an example.
$ cat tests/res/00-01-cnf.json
{"b": {"b": [1, 2], "c": "C"}}
$ cat tests/res/00-01-cnf.json | PYTHONPATH=. python3 anyconfig/cli.py -I json -O yaml -
b:
b:
- 1
- 2
c: C
$ cat tests/res/00-01-cnf.json | PYTHONPATH=. python3 anyconfig/cli.py -I json -O yaml - --set b.c=AAA
b:
b:
- 1
- 2
c: AAA
$
It would be nice if anyconfig_cli can load data from stdin such like: