mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-01 14:14:52 +08:00
Simplified yq usage
This commit is contained in:
@@ -19,7 +19,7 @@ b: bannana
|
||||
The running
|
||||
|
||||
```
|
||||
yq e --front-matter=process '.a="chocolate"' file.jekyll
|
||||
yq --front-matter=process '.a="chocolate"' file.jekyll
|
||||
```
|
||||
|
||||
Will yield:
|
||||
@@ -37,7 +37,7 @@ b: bannana
|
||||
Running with `--front-matter=extract` will only output the yaml contents and ignore the rest. From the previous example, if you were to instead run:
|
||||
|
||||
```
|
||||
yq e --front-matter=extract '.a="chocolate"' file.jekyll
|
||||
yq --front-matter=extract '.a="chocolate"' file.jekyll
|
||||
```
|
||||
|
||||
Then this would yield:
|
||||
|
||||
Reference in New Issue
Block a user