yq/examples
Mike Farah 84de9c078d Improved handling of numeric keys
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'
2019-05-16 10:03:54 +10:00
..
array.yaml Bugfix: Read yaml array 2017-09-23 13:53:04 -04:00
data1.yaml Feature: Adds merge command 2017-09-23 14:45:59 +10:00
data2.yaml Added merge with append 2018-07-07 15:26:56 +10:00
data3.yaml Prefix matching splat 2019-05-13 09:32:08 +10:00
empty.yaml Add test for --allow-empty flag in merge command 2019-03-22 09:13:39 +11:00
instruction_sample.yaml Improved handling of numeric keys 2019-05-16 10:03:54 +10:00
multiline-text.yaml Multiline value fix - multi line strings no longer printed as a yaml block 2018-03-27 16:22:24 +11:00
multiple_docs_small.yaml Enabled multi document support for merge (first document only) 2018-06-15 16:48:36 +10:00
multiple_docs.yaml Can read from all documents 2018-07-08 21:47:01 +10:00
numbered_keys.yml fixed tests for write array splat 2019-05-13 09:13:45 +10:00
order.yaml Task: Simplify development 2017-09-23 08:37:34 +10:00
order.yml Task: Simplify development 2017-09-23 08:37:34 +10:00
sample2.yaml Task: Simplify development 2017-09-23 08:37:34 +10:00
sample_array_2.yaml Added merge with append 2018-07-07 15:26:56 +10:00
sample_array.yaml Task: Simplify development 2017-09-23 08:37:34 +10:00
sample_text.yaml Task: Simplify development 2017-09-23 08:37:34 +10:00
sample.json Task: Simplify development 2017-09-23 08:37:34 +10:00
sample.yaml Read now handles multiple documents 2018-06-12 15:41:09 +10:00