mirror of
https://github.com/wader/fq.git
synced 2024-12-02 04:05:35 +03:00
377af133e0
Make cwd for a test script the directory where the script is. Use relative paths
23 lines
336 B
Plaintext
23 lines
336 B
Plaintext
/test.jq:
|
|
123
|
|
/test2.jq:
|
|
.headers[0].magic | tovalue
|
|
/err.jq:
|
|
asdad)
|
|
$ fq -n -f test.jq
|
|
123
|
|
/test.jq:
|
|
123
|
|
$ fq -f test2.jq test.mp3
|
|
"ID3"
|
|
$ fq --from-file test2.jq test.mp3
|
|
"ID3"
|
|
$ fq -nf err.jq
|
|
exitcode: 3
|
|
stderr:
|
|
error: err.jq:1:6: unexpected token ")"
|
|
$ fq -n -f missing
|
|
exitcode: 2
|
|
stderr:
|
|
error: missing: no such file or directory
|