yq/examples/merge-anchor.yaml

19 lines
225 B
YAML
Raw Normal View History

2019-12-16 10:09:23 +00:00
foo: &foo
2020-10-30 01:00:48 +00:00
a: foo_a
thing: foo_thing
c: foo_c
2019-12-16 10:09:23 +00:00
bar: &bar
2020-10-30 01:00:48 +00:00
b: bar_b
thing: bar_thing
c: bar_c
2019-12-16 10:09:23 +00:00
2019-12-22 04:15:15 +00:00
foobarList:
2020-10-30 01:00:48 +00:00
b: foobarList_b
2019-12-16 10:09:23 +00:00
<<: [*foo,*bar]
2020-10-30 01:00:48 +00:00
c: foobarList_c
2019-12-16 10:09:23 +00:00
foobar:
2020-10-30 01:00:48 +00:00
c: foobar_c
2019-12-16 10:09:23 +00:00
<<: *foo
2020-10-30 01:00:48 +00:00
thing: foobar_thing