Improved set path example

This commit is contained in:
Mike Farah 2022-11-10 10:24:32 +11:00
parent 2926e1d9b1
commit db8a7617ce
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ a:
b: things b: things
``` ```
## Set path to extract prune deep paths ## Set path to prune deep paths
Like pick but recursive. This uses `ireduce` to deeply set the selected paths into an empty object, Like pick but recursive. This uses `ireduce` to deeply set the selected paths into an empty object,
Given a sample.yml file of: Given a sample.yml file of:

View File

@ -94,7 +94,7 @@ See [here](https://mikefarah.gitbook.io/yq/operators/multiply-merge#merge-arrays
## Deeply prune a tree ## Deeply prune a tree
See [here](https://mikefarah.gitbook.io/yq/operators/path#set-path-to-extract-prune-deep-paths) for a working example. See [here](https://mikefarah.gitbook.io/yq/operators/path#set-path-to-prune-deep-paths) for a working example.
## Creating a new file / working with blank documents ## Creating a new file / working with blank documents