Mattias Wadman

Results 839 comments of Mattias Wadman

Great addition i think. I didn't know about it and based on the test cases when it was added https://github.com/stedolan/jq/commit/11965aaa2e9cf2b09c431e682cdc459b99de60fb it is intentional. Kind of neat. Also the implementation is...

Maybe should also mention how `-n` affects first input, `input` and `inputs`? i think that confuses people. I did a PR some time ago to make it a bit clearer...

Agree with @pkoppstein, `!` as shorthand for `not` could be nice. To get a bit less awkward syntax you can define your own `not/1` as `def not(f): f | not;`...

Not sure about this one yet, want something like it but is `-V` good? also should add documentation. Demo: ``` $ fq '.headers[0].magic' format/mp3/testdata/test.mp3 │00 01 02 03 04 05...

Some test file with be nice Should be just to put a bplist in `testdata/test.bplist` and a `testdata/test.fqtest` with `$ fq dv test.bplist` and run tests with WRITE_ACTUAL and inspect...

A torepr function could look something like this for the current tree structure: ```jq def _bplist_torepr: def _f: ( .object | if .type == "singleton" then .value elif .type ==...

-h formats test seems to fail, is in ./interp, should probably move it to format hmm Maybe add a torepr test? Will have a last look when im at a...

> Is there a way to have the `torepr` function display the scalar mapped value instead of the value itself? Would like to have dates represented as a timestamp instead...

Another alternative is to add an option to bplist decoder for how timestamps should be handled? maybe `-o timestamp=unix`, `-o timetamp=iso8601`, `-o timestamp=cocoa` etc?

I have a feeling it will probably also fail on some help output tests that is in formats/all. Maybe all help output tests should be moved into individual formats? i...