1
1
mirror of https://github.com/wader/fq.git synced 2024-12-26 23:15:04 +03:00
Commit Graph

654 Commits

Author SHA1 Message Date
Mattias Wadman
8e6e992c53
Merge pull request #140 from wader/interp-abs-path-on-error
interp: Use absolute path in errors
2022-02-11 17:53:05 +01:00
Mattias Wadman
77ab667bfa interp: Use absolute path in errors
Make it easier to find parse error in init.jq etc
2022-02-11 16:34:20 +01:00
Mattias Wadman
ea829b15e7
Merge pull request #139 from wader/tofromradix-cleanup
interp: Refactor radix* into toradix($base)/fromradix($base)
2022-02-11 01:33:42 +01:00
Mattias Wadman
26d9650b0e interp: Refactor radix* into toradix($base)/fromradix($base)
There is also toradix($base; $table)/fromradix($base; $table) for custom symbols and bases.
Add radix tests

Part of cleaning up all convert/tranformation functions into to/from*.

Remove number_to_bytes as with better binary support it can be written as:
1234 | tobytes | [.[range(.size)]] and soon as 1234 | tobytes | explode
2022-02-11 01:28:39 +01:00
Mattias Wadman
039f3c4a5d
Merge pull request #137 from thushan/update-readme-for-scoop
Adds Windows Scoop instructions for fq in README.
2022-02-10 12:48:33 +01:00
Mattias Wadman
e5f9082c2e
Merge pull request #138 from wader/clearer-mit-license
doc: Add more license details
2022-02-10 12:44:30 +01:00
Mattias Wadman
06b67e4b59 doc: Add more license details
Related to #137
2022-02-10 12:38:46 +01:00
Thushan Fernando
ae4a6243fc
Adds Windows Scoop instructions for fq. 2022-02-10 21:57:41 +11:00
Mattias Wadman
929bfcae2f
Merge pull request #136 from wader/usage-cleanup
doc: Cleanup and add more decode value and binary documentation
2022-02-09 21:25:57 +01:00
Mattias Wadman
36307857de doc: Cleanup and add more decode value and binary documentation 2022-02-09 21:08:01 +01:00
Mattias Wadman
b45154e6eb
Merge pull request #135 from wader/bitio-doc-cleanup3
bitio,doc: Even more cleanup
2022-02-09 10:19:25 +01:00
Mattias Wadman
0d74e879fb bitio,doc: Even more cleanup 2022-02-09 01:35:47 +01:00
Mattias Wadman
277afea0ad
Merge pull request #134 from wader/bitio-doc-cleanup2
bitio: More doc cleanup
2022-02-09 01:09:12 +01:00
Mattias Wadman
82aeb35591 bitio: More doc cleanup 2022-02-09 01:03:50 +01:00
Mattias Wadman
d1c75543ed
Merge pull request #133 from wader/binary-decode-doc-fixes
binary,decode,doc: Rename buffer to binary and add some documentation
2022-02-08 22:27:59 +01:00
Mattias Wadman
06245d1295 binary,decode,doc: Rename buffer to binary and add some documentation
Rename buffer to binary. Still some work left what to call buffer/binary in decode code.
Document decode value and binary type
Fix proper unit padding for tobytes and add still undocumenated extra padding argument.
Add some additional binary tests
2022-02-08 22:20:28 +01:00
Mattias Wadman
2dc2a24f92
Merge pull request #132 from wader/asn1-frompem-doc
asn1_ber: Add more doc and multiple outputs for frompem
2022-02-07 18:04:12 +01:00
Mattias Wadman
0312c92c31 asn1_ber: Add more doc and multiple outputs for frompem 2022-02-07 17:41:05 +01:00
Mattias Wadman
1d34cbd5e7
Merge pull request #131 from wader/interp-tovalue-default-opts
interp: Add missing default opts for tovalue
2022-02-07 17:21:01 +01:00
Mattias Wadman
0a1a5610a9 interp: Add missing default opts for tovalue 2022-02-07 17:11:51 +01:00
Mattias Wadman
ac4d15ccb9
Merge pull request #130 from wader/aac-frame-only-known
aac_frame: Only try decode object types we know about
2022-02-07 16:07:17 +01:00
Mattias Wadman
3bab3d659a aac_frame: Only try decode object types we know about
Fixes issue failing on unknown or future aac standards
Also add missing object type passing for matroska
2022-02-07 16:02:56 +01:00
Mattias Wadman
d048a63753
Merge pull request #129 from wader/mp4-stz2
mp4: Add stz2 support
2022-02-07 12:53:35 +01:00
Mattias Wadman
45b00aabd4 mp4: Add stz2 support 2022-02-07 12:35:39 +01:00
Mattias Wadman
7c05c94233
Merge pull request #92 from wader/asn1
asn1_ber: Add decoder
2022-02-06 22:17:59 +01:00
Mattias Wadman
0829c167cc asn1_ber: Add decoder
Basic support, can also do CER and DER but without any extra validation.
No schema support.

Redo format doc.md usage a bit, now format/<dir>/<format>.md instead.

Related to #20
2022-02-06 22:13:03 +01:00
Mattias Wadman
be71eb01ac decode: Rename LenFn() to LimitedFn, add FramedFn and document
I think framed makes more sense, but not sure
2022-02-06 13:49:00 +01:00
Mattias Wadman
5fab619db7
Merge pull request #128 from wader/fuzz-log-seed-number
fuzz: List seed numbers and make it build again
2022-02-05 18:42:35 +01:00
Mattias Wadman
e1bdfdf8ef fuzz: List seed numbers and make it build again 2022-02-05 18:38:38 +01:00
Mattias Wadman
91b0fed929
Merge pull request #127 from wader/doc-foramts-option-links
doc: Add format links to format table
2022-02-05 18:24:03 +01:00
Mattias Wadman
c15f5283c0 doc: Add format links to format table 2022-02-05 18:15:18 +01:00
Mattias Wadman
032cb7d3d7
Merge pull request #126 from wader/interp-allow-force-as-cli-option
interp: Support force decode as -o force=true
2022-02-05 17:30:37 +01:00
Mattias Wadman
09afd2ab24
Merge pull request #125 from wader/mp4-pnot-jpeg2000
mp4: Add video preview (pnot) and JPEG 2000 (jP) signatures
2022-02-05 17:25:23 +01:00
Mattias Wadman
366f6b185c interp: Support force decode as -o force=true 2022-02-05 17:24:42 +01:00
Mattias Wadman
092609bee1 mp4: Add video preview (pnot) and JPEG 2000 (jP) signatures 2022-02-05 17:03:18 +01:00
Mattias Wadman
8c6eeca141
Merge pull request #124 from wader/bitio-doc-cleanup
bitio: Cleanup documentation a bit
2022-02-05 17:01:59 +01:00
Mattias Wadman
d854ed5737 bitio: Cleanup documentation a bit 2022-02-05 16:54:54 +01:00
Mattias Wadman
6b8867180c
Merge pull request #123 from wader/bitio-refactor-and-correct-slicing
bitio,decode: Refactor bitio usage and make buffer slicing more correct
2022-02-04 21:53:31 +01:00
Mattias Wadman
7c5215347d bitio,decode: Refactor bitio usage and make buffer slicing more correct
Remove bitio.Buffer layer. bitio.Buffer was a kitchen sink layer with helpers
now it's just a buffer and most functions have been moved to decode instead.

bitio package now only have primitive types and functions simialar to standard
library io and bytes packages.

Make nearly eveything internally use bitio.Bit* interfaces so that slicing work
correctly this will also make it possible to start experimenting with more
complicated silcing helpers, ex things like:
breplace(.header.bitrate; 123) to get a new buffer with bitrate changed.
2022-02-04 21:41:53 +01:00
Mattias Wadman
9ed08ec108
Merge pull request #122 from wader/doc-diagram-dep-colors
doc: Color edges in diagram based on dest
2022-02-02 19:52:08 +01:00
Mattias Wadman
710c29b24e doc: Color edges in diagram based on dest 2022-02-02 19:39:33 +01:00
Mattias Wadman
1547dbdd61
Merge pull request #121 from wader/decode-add-missing-scalar-args
decode: Add scalars args to FieldRootBitBuf
2022-02-01 22:59:39 +01:00
Mattias Wadman
556f6ee8e9
Merge pull request #120 from wader/protobuf-doc
protobuf: Add note about sub message decoding
2022-02-01 22:59:33 +01:00
Mattias Wadman
4ab6381dc4 decode: Add scalars args to FieldRootBitBuf
Also move *Value.TryScalarFn to value.go
2022-02-01 22:24:24 +01:00
Mattias Wadman
2ab395a03b protobuf: Add note about sub message decoding
Fix and cleanup some other doc also
2022-02-01 22:22:19 +01:00
Mattias Wadman
e12a14a948
Merge pull request #119 from wader/doc-more-display-fixes
doc: More display alias leftover fixes
2022-01-29 16:36:45 +01:00
Mattias Wadman
6b51b0676f doc: More display alias leftover fixes 2022-01-29 13:22:10 +01:00
Mattias Wadman
7634328536
Merge pull request #118 from wader/doc-display
doc: Document display and some more jq hints
2022-01-29 13:16:02 +01:00
Mattias Wadman
f0ce7179b2 doc: Document display and some more jq hints
Also fixed some verbose -> dv leftovers
2022-01-29 13:10:25 +01:00
Mattias Wadman
bc20f09fdb
Merge pull request #117 from wader/make-cleanup-targets
make: Cleanup some not very used targets
2022-01-29 12:31:10 +01:00