Skip to content
Myr

Merge pull request #678 from isomorphisms/patch-1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

readability

authored by William Langford · committed by William Langford · parents 7a295b3, 5389fdb · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/content/1.tutorial/default.yml+3 added-3 removed
148 unmodified lines
149 }150151 - text: |152153 For the rest of the examples, I'll leave out the `curl` command - it's not going to change.153 For the rest of the examples, I'll leave out the `curl` command—it's not going to change.154155 There's still a lot of info we don't care about there, so we'll156 restrict it down to the most interesting fields.157
44 unmodified lines
202 `.[]` returns each element of the array returned in the response,203 one at a time, which are all fed into `{message: .commit.message, name: .commit.committer.name}`.204205206 Data in jq is represented as streams of JSON values - every jq206 Data in jq is represented as streams of JSON values—every jq207 expression runs for each value in its input stream, and can208 produce any number of values to its output stream.209210 Streams are serialised by just separating JSON values with211 whitespace. This is a `cat`-friendly format - you can just join211 whitespace. This is a `cat`-friendly format—you can just join212 two JSON streams together and get a valid JSON stream.213214 If you want to get the output as a single array, you can tell jq to215 "collect" all of the answers by wrapping the filter in square
107 unmodified lines