Mattias Wadman
36307857de
doc: Cleanup and add more decode value and binary documentation
2022-02-09 21:08:01 +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
366f6b185c
interp: Support force decode as -o force=true
2022-02-05 17:24:42 +01:00
Mattias Wadman
6b51b0676f
doc: More display alias leftover fixes
2022-01-29 13:22:10 +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
b66e3287f2
Merge pull request #112 from wader/interp-cleanup-d-alises
...
interp: Cleanup display aliases, now: d, da, dd, dv, ddv
2022-01-29 12:28:46 +01:00
Mattias Wadman
7bc2521938
doc,interp: Add some example usages to cli help
2022-01-29 12:21:51 +01:00
Mattias Wadman
fc0aacb654
interp: Cleanup display aliases, now: d, da, dd, dv, ddv
...
Think it makes sense to have them all start with d.
Also f is often used as function argument name.
2022-01-28 18:25:38 +01:00
Mattias Wadman
c52a1a2364
doc: Use f($a; $b) instead of jq f/2 notation
...
Also some general polish
2022-01-27 09:55:45 +01:00
Mattias Wadman
e792598c69
interp: Add grep_by/1 to recursively match using a filter
...
Refactor other grep functions to use it
2022-01-24 18:26:25 +01:00
Mattias Wadman
8e9700d0bd
doc: Improve readme a bit and add torepr example
2022-01-15 19:26:58 +01:00
Mattias Wadman
149cb3f45a
interp: Add torepr/0 that converts decode value into what it reptresents
...
Ex: fq -d msgpack torepr file.msgpack
Willoutput the JSON representation of the msgpack
Make per format *_torepr functions internal
2022-01-12 17:33:58 +01:00
Mattias Wadman
b3a09805a4
interp: Document bit opts funcs and add some error tests
2022-01-09 10:43:07 +01:00
Mattias Wadman
e365f22084
interp: Cleanup stdio usage and functions
2022-01-05 21:41:11 +01:00
Mattias Wadman
a41f0d4b5f
windows: Correct @builtin include path join
...
Failed because go embed paths always uses /
Switch to always use forward slash paths internally
Related to #21
2022-01-04 22:10:53 +01:00
Mattias Wadman
d440c4fa11
Merge pull request #45 from wader/doc-improve2
...
doc: Some more dev infomration
2021-12-31 17:18:24 +01:00
Mattias Wadman
6db7218093
doc: Some more dev infomration
2021-12-31 17:13:16 +01:00
Mathieu Aubin
c90e3e1d0c
typpp
2021-12-30 08:56:50 -05:00
Mattias Wadman
63485efda8
doc: Add hopes, pronounce and some more examples
2021-12-28 23:13:23 +01:00
Mattias Wadman
eb4a6fdbd6
doc: Remove empty comment
2021-12-22 19:34:06 +01:00
Mattias Wadman
6491d08fb0
doc: Add more common usages
2021-12-22 19:33:21 +01:00
Mattias Wadman
916cb30618
doc: Improve usage examples as bit
2021-12-20 17:21:07 +01:00
Mattias Wadman
d02c7c42ff
doc: Add some more usage examples
2021-12-20 15:15:43 +01:00
Mattias Wadman
e1e8a236e6
doc: Add color/unicode section and move config section
2021-12-19 11:51:24 +01:00
Mattias Wadman
f7c7801bbe
interp: Rework buffer regex support
...
Now all regexp functions should work similar to string version for buffers.
Added scan_toend that works as scan but outputs buffer from match to end of buffer,
useful when trying to decode a format and you dont know or care to limit.
2021-12-17 16:23:44 +01:00
Mattias Wadman
9aec91a675
interp: match: Fix issue with regexp meta characters when matching using a buffer
2021-12-04 17:24:43 +01:00
Mattias Wadman
07b421011f
interp: add topath/0 and make todescription return null if there is none
...
Move out more code from funcs.jq
2021-11-19 11:44:23 +01:00
Mattias Wadman
07c7daaf92
doc: Some rewording
2021-11-19 00:23:04 +01:00
Mattias Wadman
f9f866000e
interp,decode: Add force option to ignore asserts
2021-11-16 13:03:56 +01:00
Mattias Wadman
3fafee8559
interp: Clearer help for -d
2021-11-16 08:43:29 +01:00
Mattias Wadman
1b32b42f93
decode: Major decode API refactor
...
Generate more code
More generic and comfortable API
Improve and Update format decoder to new API
Add some more format tests
2021-11-15 21:12:07 +01:00
Mattias Wadman
6a15625587
interp,decode: Refactor out Scalar from Value and merge Array/Struct into Compound
...
Also add tosym, toactual
2021-11-05 17:29:22 +01:00
Mattias Wadman
571bf29ab2
Change project title
2021-11-01 17:47:36 +01:00
Mattias Wadman
0660ff08c6
interp: Clear up confusing --rawfile (add a jq alias)
2021-11-01 13:01:05 +01:00
Mattias Wadman
0d693aa59e
interp: Add line between usage and args help
2021-10-30 18:35:21 +02:00
Mattias Wadman
08142063b3
doc: Fix typos and old examples
2021-10-29 18:46:19 +02:00
Mattias Wadman
eedfd16b40
interp: Replace find with overloaded match that support buffer
2021-10-20 21:16:13 +02:00
Mattias Wadman
d6d94842b5
interp: Remove --options, probably just confusing
2021-10-18 00:59:35 +02:00
Mattias Wadman
7f36f703dd
Add to/bytes/bits[range]
2021-10-17 14:43:37 +02:00
Mattias Wadman
7298a4cd8d
interp: Add buffer match support to find and grep
2021-10-17 01:26:30 +02:00
Mattias Wadman
15d85e1043
doc: Add find/1 find/2
2021-10-13 19:43:53 +02:00
Mattias Wadman
e86b45bd1a
Add *grep/1/2 and find/1/2
2021-10-13 01:27:04 +02:00
Mattias Wadman
c997536f14
interp: Add root, buffer_root, format_root, parent and parents
2021-09-28 01:46:29 +02:00
Mattias Wadman
00b7c18b65
doc: Some more doc work
2021-09-24 15:41:23 +02:00
Mattias Wadman
976e992c31
interp: Move progress logic to jq
2021-09-20 17:47:40 +02:00
Mattias Wadman
90c19c6cc1
make,test: Move testjq to own script and reuse fq binary
...
Remove version from --help for now
2021-09-19 11:50:41 +02:00
Mattias Wadman
242525f8de
doc: Move formats to own file
2021-09-19 10:31:43 +02:00
Mattias Wadman
93fd097b53
cli: Add -M -C support and default to color if tty
2021-09-19 01:19:48 +02:00
Mattias Wadman
6fa5ae8ca3
doc: Some fixes
2021-09-19 00:51:15 +02:00
Mattias Wadman
a7459b3db7
doc: Some basic usage and cleanup
2021-09-18 19:27:46 +02:00