1
1
mirror of https://github.com/wader/fq.git synced 2024-12-27 15:42:07 +03:00
fq/pkg/interp/testdata/value_output.fqtest
Mattias Wadman ee66fece18 interp: Make tovalue output behave as jq value
Now ex "tovalue | .some.thing" on a decode value will make some.thing be jq value
instead of a decode value which woud be displayed as a decode treee, seems confusing.

I think this is more intuetive and make more sense.
2023-04-29 22:31:53 +02:00

27 lines
474 B
Plaintext

$ fq -V '.headers[0].header[]' test.mp3
"ID3"
4
0
{
"experimental_indicator": false,
"extended_header": false,
"unsynchronisation": false,
"unused": 0
}
35
$ fq -Vr '.headers[0].header[]' test.mp3
ID3
4
0
{
"experimental_indicator": false,
"extended_header": false,
"unsynchronisation": false,
"unused": 0
}
35
$ fq -o bits_format=base64 -V '.frames[0].audio_data' test.mp3
"AAAAAAA="
$ fq -o bits_format=base64 -Vr '.frames[0].audio_data' test.mp3
AAAAAAA=