1
1
mirror of https://github.com/wader/fq.git synced 2024-12-28 08:02:28 +03:00
Commit Graph

901 Commits

Author SHA1 Message Date
Mattias Wadman
d376520f11 interp: Remove to*range pad argument and fix stdout padding issue
Padding could end up double.
Remove to*range($pad) as it probably just confusing to be able
to pad an existing range, what to show in hexdump etc? zero bits
that do not actuall exist at that range?

Add tests and binary stdout support to tests
2022-03-17 20:15:35 +01:00
Mattias Wadman
ae94fc4ff0
Merge pull request #200 from wader/bump-docker-golang-1.18.0
Update docker-golang from 1.17.8 to 1.18.0
2022-03-16 17:42:00 +01:00
bump
010f64301c Update docker-golang from 1.17.8 to 1.18.0 2022-03-16 16:07:10 +00:00
Mattias Wadman
8217601b6a
Merge pull request #199 from wader/gojq5
gojq: Rebase fq fork
2022-03-16 10:44:41 +01:00
Mattias Wadman
2e240447e3 gojq: Rebase fq fork 2022-03-16 10:26:59 +01:00
Mattias Wadman
b20ae90744
Merge pull request #198 from wader/interp-handle-cancel
interp,cli: Handle ctrl-c properly
2022-03-15 22:43:41 +01:00
Mattias Wadman
9cb4b57a45 interp,cli: Handle ctrl-c properly
Should supress cancel error message
Add CLI ctlr-c/ctrl-d tests and make them more robust
2022-03-15 22:38:12 +01:00
Mattias Wadman
fbb1d3ade6
Merge pull request #197 from wader/gojq4
gojq: Rebase fq fork
2022-03-14 19:02:31 +01:00
Mattias Wadman
8c91870235 gojq: Rebase fq fork 2022-03-14 18:35:17 +01:00
Mattias Wadman
8184a5b395
Merge pull request #196 from wader/gojq3
gojq: Rebase fq fork
2022-03-14 14:42:58 +01:00
Mattias Wadman
88f791e0fa gojq: Rebase fq fork 2022-03-14 14:22:47 +01:00
Mattias Wadman
f15e241456
Merge pull request #194 from wader/github-actions-update
github: Update action versions
2022-03-12 20:07:10 +01:00
Mattias Wadman
3c02992516 github: Update action versions 2022-03-12 20:00:21 +01:00
Mattias Wadman
3e34df0369
Merge pull request #193 from wader/bump-gojq-fromentries
gojq: Rebase fq fork
2022-03-12 19:02:21 +01:00
Mattias Wadman
d79afeb386 gojq: Rebase fq fork
Includes from_entries optimization
2022-03-12 18:51:23 +01:00
Mattias Wadman
ad0e3f5df2
Merge pull request #189 from wader/changes-0.0.6
fq: Update to version 0.0.6
2022-03-11 17:08:33 +01:00
Mattias Wadman
18b3da4de9 fq: Update version to 0.0.6 2022-03-11 17:02:11 +01:00
Mattias Wadman
7cea8757b1 doc: Add 0.0.6 changes 2022-03-11 17:01:26 +01:00
Mattias Wadman
c590964ded
Merge pull request #192 from wader/interp-repl-improv-interrupt
interp,repl: Improved eval and output interrupt
2022-03-11 16:37:48 +01:00
Mattias Wadman
41551de331 interp,repl: Improved eval and output interrupt
repl now rewrites query to do implicit display inside the sub eval.
This makes it possible to interrupt eval and output in a better and faster way.

Make JSON encoder fail early on errors.

Add more interrupt tests.
2022-03-11 16:22:30 +01:00
Mattias Wadman
dd52e85411
Merge pull request #191 from wader/repl-interrupt-fix
interp: Fix interrupt regression after query rewrite refactor
2022-03-11 13:05:12 +01:00
Mattias Wadman
6f10745aa5 interp: Fix interrupt regression after query rewrite refactor
Also add test for it
2022-03-11 12:41:49 +01:00
Mattias Wadman
307fe034c8
Merge pull request #190 from wader/doc-add-bts2022-video
doc: Add bts2022 video
2022-03-09 22:27:42 +01:00
Mattias Wadman
c53bd77718 doc: Add bts2022 video 2022-03-09 22:13:25 +01:00
Mattias Wadman
b0c255fb98
Merge pull request #188 from wader/binary-regexp-explode-clenaup
interp: Cleanup binary regexp overloading and add explode
2022-03-09 20:28:09 +01:00
Mattias Wadman
dff7e7dadb interp: Cleanup binary regexp overloading and add explode
Add explode for binary that explode into an array of the binary unit tobits
Remove scan_toend as it feels a bit weird and one can use tobytes | .[match(...):] instead
Some general cleanup also
2022-03-09 20:17:12 +01:00
Mattias Wadman
c298ed71a7
Merge pull request #187 from wader/present-bts2022
doc: Add fq bts2022 presentation
2022-03-08 18:26:53 +01:00
Mattias Wadman
b97776c9e3 doc: Add fq bts2022 presentation 2022-03-08 18:20:18 +01:00
Mattias Wadman
0ed6b250c9
Merge pull request #186 from wader/format-simplify-torepr
format: Simplify torepr, no need for _f function
2022-03-08 17:25:15 +01:00
Mattias Wadman
27e761570a format: Simplify torepr, no need for _f function 2022-03-08 17:09:48 +01:00
Mattias Wadman
aa250b4468
Merge pull request #185 from wader/testcli-expect-wait-prompt-ubuntu-focal
test: Make expect cli test more robust
2022-03-07 16:31:41 +01:00
Mattias Wadman
56ae4a0c70 test: Make expect cli test more robust
Wait for prompt before sending ^D. Seems to fix issue with expect on ubuntu focal.

Thanks @KristianKarl for report
2022-03-07 16:22:41 +01:00
Mattias Wadman
307216232c
Merge pull request #184 from wader/bump-docker-golang-1.17.8
Update docker-golang from 1.17.7 to 1.17.8
2022-03-04 17:37:56 +01:00
bump
ee5e47189d Update docker-golang from 1.17.7 to 1.17.8 2022-03-04 16:08:37 +00:00
Mattias Wadman
a361812323
Merge pull request #183 from wader/help-less-width
interp: Make help output less wide
2022-03-03 22:12:51 +01:00
Mattias Wadman
eeb59152a6 interp: Make help output less wide 2022-03-03 22:02:33 +01:00
Mattias Wadman
256ab3c322
Merge pull request #182 from wader/repl-color-arrow-pos
repl: Correct error arrow position in color mode
2022-03-03 21:31:46 +01:00
Mattias Wadman
9cb4205b1d repl: Correct error arrow position in color mode 2022-03-03 21:24:03 +01:00
Mattias Wadman
5c9afa5f78
Merge pull request #181 from wader/interp-repl-color-formats-options-help
Add path and value colors to repl and rework options and formats help
2022-03-03 18:33:01 +01:00
Mattias Wadman
3f50bb90a6 interp: Rework formats and options help
Replace --formats with --help formats
Add --help options
2022-03-03 18:25:20 +01:00
Mattias Wadman
33efb02af0 interp,repl: Add path and value colors to prompt 2022-03-03 18:25:19 +01:00
Mattias Wadman
fe8183b500 interp: Color parse in jq 2022-03-03 17:55:24 +01:00
Mattias Wadman
db8076052d
Merge pull request #180 from wader/doc-format-digram-macho
doc: Regenerate and fix macho section size
2022-03-03 10:02:40 +01:00
Mattias Wadman
920629f5fd doc: Regenerate and fix macho section size
Make macho format documentaion a bit more consistent.
2022-03-03 09:55:53 +01:00
Mattias Wadman
a0b32dd57a
Merge pull request #179 from wader/bump-gojq-tonumber-try
gojq: Rebase fq fork and add support for non-10 base for tonumber
2022-03-02 23:53:01 +01:00
Mattias Wadman
be6f00935f gojq: Rebase fq fork and add support for non-10 base for tonumber
tonumber now works with non-10 number literals
Fix try precedences changes
Fix .[]? error handling changes
2022-03-02 23:46:20 +01:00
Mattias Wadman
1c0130c04e
Merge pull request #178 from wader/eval-rewrite-refactor
repl,interp: Refactor repl and slurp
2022-03-01 18:39:02 +01:00
Mattias Wadman
0a043f9096 repl,interp: Refactor repl and slurp
Now repl, slurp and help implemented using same query rewrite.
Include filename context in error if possible.
Add spew function that does opposite of slurp.
Start of help infra, not done or documented yet.
Show error pointer on parse error.
Rename internal eval to _eval and make eval be wrapper that
does rewrite and has various eror handling etc.
Nicer repl, slupr and help errors.
2022-03-01 18:31:00 +01:00
Mattias Wadman
47b3c64bf9
Merge pull request #177 from wader/mp4-colr-reformat
mp4: Reformat and use dv in test
2022-03-01 12:10:12 +01:00
Mattias Wadman
b157751a0a mp4: Reformat and use dv in test 2022-03-01 11:59:28 +01:00