From 663713c288a322afae3e11b0fdb48ecab837ac15 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Sat, 17 Dec 2022 11:16:27 +1100 Subject: [PATCH] v4.30.6 --- operators/comment-operators.md | 3 +++ operators/path.md | 1 + 2 files changed, 4 insertions(+) diff --git a/operators/comment-operators.md b/operators/comment-operators.md index 9d1b9da2..3ba9e65c 100644 --- a/operators/comment-operators.md +++ b/operators/comment-operators.md @@ -247,6 +247,7 @@ Note the use of `...` to ensure key nodes are included. Given a sample.yml file of: ```yaml # hi + a: cat # comment # great b: # key comment @@ -265,6 +266,7 @@ b: Given a sample.yml file of: ```yaml # welcome! + a: cat # meow # have a great day ``` @@ -293,6 +295,7 @@ yq '. | head_comment' sample.yml will output ```yaml welcome! + ``` ## Head comment with document split diff --git a/operators/path.md b/operators/path.md index 1e0076ac..3356e867 100644 --- a/operators/path.md +++ b/operators/path.md @@ -127,6 +127,7 @@ Like pick but recursive. This uses `ireduce` to deeply set the selected paths in Given a sample.yml file of: ```yaml + parentA: bob parentB: child1: i am child1