2020-06-08 03:29:51 +03:00
|
|
|
/a:
|
|
|
|
a
|
|
|
|
/b:
|
|
|
|
b
|
|
|
|
/c:
|
|
|
|
c
|
2022-11-20 21:22:16 +03:00
|
|
|
# TODO: use test format
|
|
|
|
$ fq -d mp3_frame todescription a b c
|
2022-05-21 20:33:52 +03:00
|
|
|
"a"
|
|
|
|
"b"
|
|
|
|
"c"
|
2022-11-20 21:22:16 +03:00
|
|
|
$ fq -d mp3_frame '(.,inputs) | todescription' a b c
|
2022-05-21 20:33:52 +03:00
|
|
|
"a"
|
|
|
|
"b"
|
|
|
|
"c"
|
2022-11-20 21:22:16 +03:00
|
|
|
$ fq -d mp3_frame '(.,input,input,input) | try todescription catch .' a b c
|
2022-05-21 20:33:52 +03:00
|
|
|
"a"
|
|
|
|
"b"
|
|
|
|
"c"
|
2020-06-08 03:29:51 +03:00
|
|
|
exitcode: 5
|
|
|
|
stderr:
|
2022-05-21 20:33:52 +03:00
|
|
|
error: c: break
|
2022-11-20 21:22:16 +03:00
|
|
|
$ fq -d mp3_frame -n '(.,inputs) | try todescription catch .' a b c
|
2022-02-15 01:43:49 +03:00
|
|
|
"expected decode value but got: null (null)"
|
2022-05-21 20:33:52 +03:00
|
|
|
"a"
|
|
|
|
"b"
|
|
|
|
"c"
|
2022-11-20 21:22:16 +03:00
|
|
|
$ fq -d mp3_frame -n 'inputs | try todescription catch .' a b c
|
2022-05-21 20:33:52 +03:00
|
|
|
"a"
|
|
|
|
"b"
|
|
|
|
"c"
|
2022-11-20 21:22:16 +03:00
|
|
|
$ fq -d mp3_frame -n '[inputs | try todescription catch .]' a b c
|
2020-06-08 03:29:51 +03:00
|
|
|
[
|
2022-05-21 20:33:52 +03:00
|
|
|
"a",
|
|
|
|
"b",
|
|
|
|
"c"
|
2020-06-08 03:29:51 +03:00
|
|
|
]
|
2022-11-20 21:22:16 +03:00
|
|
|
$ fq -d mp3_frame -n '(input,input,input,input) | todescription' a b c
|
2022-05-21 20:33:52 +03:00
|
|
|
"a"
|
|
|
|
"b"
|
|
|
|
"c"
|
2020-06-08 03:29:51 +03:00
|
|
|
exitcode: 5
|
|
|
|
stderr:
|
2022-05-21 20:33:52 +03:00
|
|
|
error: c: break
|
2022-11-20 21:22:16 +03:00
|
|
|
$ fq -d mp3_frame input_filename
|
2021-11-30 14:23:20 +03:00
|
|
|
"<stdin>"
|
|
|
|
stdin:
|
|
|
|
test
|
2022-11-20 21:22:16 +03:00
|
|
|
$ fq -d mp3_frame input_filename a b c
|
2022-05-21 20:33:52 +03:00
|
|
|
"a"
|
|
|
|
"b"
|
|
|
|
"c"
|
2022-11-20 21:22:16 +03:00
|
|
|
$ fq -d mp3_frame input_filename a non-existing c
|
2022-05-21 20:33:52 +03:00
|
|
|
"a"
|
|
|
|
"c"
|
2020-06-08 03:29:51 +03:00
|
|
|
exitcode: 2
|
|
|
|
stderr:
|
2022-05-21 20:33:52 +03:00
|
|
|
error: non-existing: no such file or directory
|
2022-11-20 21:22:16 +03:00
|
|
|
$ fq -d mp3_frame '(' a b c
|
2020-06-08 03:29:51 +03:00
|
|
|
exitcode: 3
|
|
|
|
stderr:
|
2022-06-01 18:27:33 +03:00
|
|
|
error: arg:1:1: unexpected EOF
|
2022-11-20 21:22:16 +03:00
|
|
|
$ fq -d mp3_frame bla a b c
|
2020-06-08 03:29:51 +03:00
|
|
|
exitcode: 3
|
|
|
|
stderr:
|
2022-02-18 02:47:17 +03:00
|
|
|
error: arg: function not defined: bla/0
|
2022-11-20 21:22:16 +03:00
|
|
|
$ fq -d mp3_frame '1+"a"' a b c
|
2020-06-08 03:29:51 +03:00
|
|
|
exitcode: 5
|
|
|
|
stderr:
|
2022-05-21 20:33:52 +03:00
|
|
|
error: a: cannot add: number (1) and string ("a")
|
|
|
|
error: b: cannot add: number (1) and string ("a")
|
|
|
|
error: c: cannot add: number (1) and string ("a")
|
2022-11-20 21:22:16 +03:00
|
|
|
$ fq -s -d mp3_frame '[.[] | todescription]' a b c
|
2020-06-08 03:29:51 +03:00
|
|
|
[
|
2022-05-21 20:33:52 +03:00
|
|
|
"a",
|
|
|
|
"b",
|
|
|
|
"c"
|
2020-06-08 03:29:51 +03:00
|
|
|
]
|
2022-11-20 21:22:16 +03:00
|
|
|
$ fq -n -s -d mp3_frame . a b c
|
2020-06-08 03:29:51 +03:00
|
|
|
null
|
2022-05-21 20:33:52 +03:00
|
|
|
$ fq . a
|
2020-06-08 03:29:51 +03:00
|
|
|
exitcode: 4
|
|
|
|
stderr:
|
2022-11-02 14:28:53 +03:00
|
|
|
error: a: probe: failed to decode: try fq -d FORMAT to force format, see fq -h formats for list
|
2022-11-20 21:22:16 +03:00
|
|
|
$ fq -i -d mp3_frame . a b c
|
|
|
|
mp3_frame!, ...[0:3][]> ._format
|
|
|
|
"mp3_frame"
|
|
|
|
"mp3_frame"
|
|
|
|
"mp3_frame"
|
|
|
|
mp3_frame!, ...[0:3][]> ^D
|
|
|
|
$ fq -i -s -d mp3_frame . a b c
|
|
|
|
[mp3_frame!, ...][0:3]> .[]._format
|
|
|
|
"mp3_frame"
|
|
|
|
"mp3_frame"
|
|
|
|
"mp3_frame"
|
|
|
|
[mp3_frame!, ...][0:3]> ^D
|
2022-01-23 14:35:19 +03:00
|
|
|
$ fq
|
|
|
|
exitcode: 4
|
|
|
|
stdin:
|
|
|
|
test
|
|
|
|
stderr:
|
2022-11-02 14:28:53 +03:00
|
|
|
error: <stdin>: probe: failed to decode: try fq -d FORMAT to force format, see fq -h formats for list
|