Search results
/postroll
Deep merging the YAML files using yq
blog.ignytis.eu
I've started using the yq tool recently, mainly to query for data in YAML files, and recently needed to merge several files in a way that would not overwrite lists from one with lists from a later file, but instead append them. This is a nifty trick.
Search tips
- Use
#{some tag}ortag:{some tag}to filter by tag; using this more than once will find results that match all tags. - Use
year:{year}to filter by year. If you use this multiple times, the last one wins. - Use
begin:{year-month-day}to restrict to results beginning on that day. Last one wins. - Use
end:{year-month-day}to restrict to results ending on that day. Last one wins.