mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
Improved set path example
This commit is contained in:
parent
2926e1d9b1
commit
db8a7617ce
@ -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:
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user