mirror of https://github.com/rwxrob/z
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
750 B
Plaintext
15 lines
750 B
Plaintext
|
|
The <yq> command allows YAML (and JSON, since all JSON is YAML)
|
|
files to be queried using a simple syntax that is nearly identical
|
|
to the popular stedolan/jq tool (written in C). In fact, <yq> uses
|
|
the same <yqlib> that the <yq> tool does (just without the Cobra).
|
|
|
|
The first argument is the <expression> and almost always begins with
|
|
a dot (.). See the <https://github.com/stedolan/jq> project for
|
|
exact syntax (until more documentation is updated here to contain
|
|
the same).
|
|
|
|
The remaining arguments are the names of one or more files. If no
|
|
file argument is passed standard input is assumed (per UNIX filter
|
|
philosophy). Note that the special dash (-) filename is not
|
|
supported even though it was in the original <yq> tool. |