yq/examples/merge-anchor.yaml

20 lines
209 B
YAML
Raw Normal View History

2019-12-16 10:09:23 +00:00
foo: &foo
a: original
thing: coolasdf
2019-12-25 01:11:04 +00:00
thirsty: yep
2019-12-16 10:09:23 +00:00
bar: &bar
b: 2
2019-12-22 04:15:15 +00:00
thing: coconut
c: oldbar
2019-12-16 10:09:23 +00:00
2019-12-22 04:15:15 +00:00
foobarList:
2019-12-16 10:09:23 +00:00
<<: [*foo,*bar]
2019-12-22 04:15:15 +00:00
c: newbar
2019-12-16 10:09:23 +00:00
foobar:
<<: *foo
2019-12-25 01:11:04 +00:00
thirty: well beyond
2019-12-27 08:06:08 +00:00
thing: ice
2019-12-16 10:09:23 +00:00
c: 3