mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-14 23:28:06 +00:00
84de9c078d
When there is no match at a given path, numeric keys are assumed to be strings. To create an array '+' must be used. e.g: yq n thing[+].cat fred will create an array under thing, whereas yq n thing[0].cat fred will create a map under thing, with a key '0'
3 lines
33 B
YAML
3 lines
33 B
YAML
b.c: cat
|
|
b.e[+].name: Mike Farah
|