Simplified yq usage

This commit is contained in:
Mike Farah
2022-01-28 12:50:13 +11:00
parent 9896245f71
commit 2e3f5e410e
10 changed files with 48 additions and 46 deletions
+2 -2
View File
@@ -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: