1
1
mirror of https://github.com/wader/fq.git synced 2024-11-23 09:56:07 +03:00
Commit Graph

496 Commits

Author SHA1 Message Date
Mattias Wadman
be0ef80c8d interp,fq: Make bit operators normal functions
Uses same rule as jq math functions, 1 arg uses input, more than one all passed as args.
So "bnot 1" -> "1 | bnot", "1 bsl 1" -> "bsl(1; 1)"

Don't think it's worth changing the jq syntax for this and also it could make fq
scripts no compatiblr with other jq tools. Non-10 base number literals are still allowed
but should probably not be used in scripts, only in repl and with cli.
2022-01-09 01:06:36 +01:00
Mattias Wadman
c8ec5d2541 goreleaser: Ignore merge commits in changelog 2022-01-07 20:34:01 +01:00
Mattias Wadman
c05fe732b6
Merge pull request #59 from wader/png-plte-trns-cleanup
png: Decode PLTE and tRNS chunks and cleanup syms a bit
2022-01-07 20:13:37 +01:00
Mattias Wadman
6cbd6f6b79
Merge pull request #58 from wader/stderr-and-tests
interp: Add stderr again for jq compat
2022-01-07 20:10:30 +01:00
Mattias Wadman
246718e074
Merge pull request #57 from wader/tcp-flow-allow-missing
tcp,flow: By default allow missing syn/ack for now
2022-01-07 20:10:11 +01:00
Mattias Wadman
d543b0bf98
Merge pull request #55 from wader/bump-docker-golang-1.17.6
Update docker-golang from 1.17.5 to 1.17.6
2022-01-07 18:01:02 +01:00
Mattias Wadman
f2d8c0aa89
Merge pull request #56 from wader/bump-github-go-version-1.17.6
Update github-go-version from 1.17.5, 1.17.5 to 1.17.6
2022-01-07 18:00:22 +01:00
bump
9e5d35a2f8 Update github-go-version from 1.17.5, 1.17.5 to 1.17.6 2022-01-07 16:03:40 +00:00
bump
802938f87d Update docker-golang from 1.17.5 to 1.17.6 2022-01-07 16:03:38 +00:00
Mattias Wadman
bfc977b810 png: Decode PLTE and tRNS chunks and cleanup syms a bit 2022-01-07 14:31:18 +01:00
Mattias Wadman
edd0ae198b tcp,flow: By default allow missing syn/ack for now
Is probably what you usually want
2022-01-07 12:02:38 +01:00
Mattias Wadman
a3cfcd0ad2 interp: Add stderr again for jq compat
Also add tests for print* and stderr
2022-01-07 11:30:09 +01:00
Mattias Wadman
2c3e41111d doc,make: Add release script 2022-01-06 09:57:47 +01:00
Mattias Wadman
aa7bbef7f2
Merge pull request #37 from wader/bson
bson: Add decoder
2022-01-06 00:55:09 +01:00
Mattias Wadman
628f0f403d bson: Add decoder
Only supports basic types for now
2022-01-06 00:51:37 +01:00
Mattias Wadman
b6745e1c68
Merge pull request #40 from wader/elf
elf,ar: Add ar decoder, improved elf decoder
2022-01-05 22:11:21 +01:00
Mattias Wadman
681dbc26b7 elf,ar: Add ar decoder, improved elf decoder
Add x86, 386, arm64, arm v6, arm v7 linux elf test files
2022-01-05 22:05:09 +01:00
Mattias Wadman
f6abcff1fc
Merge pull request #54 from wader/interp-stdio-cleanup
interp: Cleanup stdio usage and functions
2022-01-05 21:44:48 +01:00
Mattias Wadman
e365f22084 interp: Cleanup stdio usage and functions 2022-01-05 21:41:11 +01:00
Mattias Wadman
293d8cfc1b
Merge pull request #53 from wader/interp-match-no-buffer-smartness
interp: Remove buffer smartness for regexp match functions
2022-01-05 21:17:17 +01:00
Mattias Wadman
b6515c8b15 interp: Remove buffer smartness for regexp match functions
Just confusing and breaks symbolic grep for decode values (as they are buffers).
To get buffer use tobytes functions intstead.
2022-01-05 21:13:39 +01:00
Mattias Wadman
52dddbbad3 goreleaser: Use draft release to allow release note changes 2022-01-05 00:23:01 +01:00
Mattias Wadman
0f2e593e55
Merge pull request #29 from wader/github-ci-windows-macos
github,ci: Add windows, macos and 32-bit linux
2022-01-05 00:15:13 +01:00
Mattias Wadman
e5c620db83 github,ci: Add windows, macos and 32-bit linux
Split out lint to own job and only run cli bin test on ubuntu (requires expect)
Add .gitattributes with text=lf for *.fqtest as they should be exact
2022-01-05 00:11:43 +01:00
Mattias Wadman
387c48b7a0
Merge pull request #52 from wader/windows-unbreak-include-tests
Unbreak @builtin include and tests on windows
2022-01-04 22:19:18 +01:00
Mattias Wadman
966863cb47 doc,dev: Add note how to setup windows dev env 2022-01-04 22:14:57 +01:00
Mattias Wadman
bf9e13c85a windows: Unbreak tests
Normalize OS specific errors paths to make difftests work

Related to #21
2022-01-04 22:11:25 +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
a8620d2cc0
Merge pull request #50 from wader/pcap-ignore-snaplen
pcap: Don't fail if incl_len > spanlen
2022-01-03 21:32:01 +01:00
Mattias Wadman
af23eb8269 pcap: Don't fail if incl_len > spanlen
Documentation wrong? seems to happen in real pcap files
2022-01-03 21:27:14 +01:00
Mattias Wadman
cbb90cdb85
Merge pull request #49 from wader/bsd-lo-and-link-group
pcap,pcapng,bsd_loopback_frame: Add decoder, refactor link frame into…
2022-01-03 21:16:18 +01:00
Mattias Wadman
b9aef39ed4 pcap,pcapng,bsd_loopback_frame: Add decoder, refactor link frame into a group
Also fix incorrect struct name s/UDPDatagramIn/UDPPayloadIn/
2022-01-03 21:06:27 +01:00
Mattias Wadman
1923ccd082
Merge pull request #48 from wader/docker-lint-not-needed
docker: No need to install golangci-lint, use make lint instead
2022-01-02 15:37:51 +01:00
Mattias Wadman
c07138339c docker: No need to install golangci-lint, use make lint instead 2022-01-02 15:31:39 +01:00
Mattias Wadman
ce64d5854c
Merge pull request #47 from wader/matroska-max-tag-size-only-strings
matroska: Assert sane tag size only for strings
2022-01-01 19:46:39 +01:00
Mattias Wadman
b8671137dd matroska: Assert sane tag size only for strings
Fixes issue with big webm/matroska files
Can be ignored with force decode
2022-01-01 19:37:12 +01:00
Mattias Wadman
b3bbbdf1fa
Merge pull request #46 from mathieu-aubin/patch-2
typ and links
2022-01-01 16:25:05 +01:00
Mathieu Aubin
30aa0925cf
typ and links 2022-01-01 05:45:03 -05: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
Mattias Wadman
6fbb8563a9
Merge pull request #44 from mathieu-aubin/patch-1
typpp
2021-12-30 15:04:41 +01:00
Mathieu Aubin
c90e3e1d0c
typpp 2021-12-30 08:56:50 -05:00
Doctor-love
708788b6fc
Merge pull request #42 from orhun/update_readme
doc: Update instructions to mention AUR (VCS) package
2021-12-29 11:33:09 +00:00
Orhun Parmaksız
625a1dbe53
doc: Update instructions to mention AUR (VCS) package
A new package has been created in the AUR for building
and installing `fq` from the latest git source:
<https://aur.archlinux.org/packages/fq-git/>

Signed-off-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2021-12-29 14:26:32 +03:00
Doctor-love
12c456832b
Merge pull request #41 from orhun/update_readme
doc: Update installation instructions for Arch Linux
2021-12-29 10:23:59 +00:00
Orhun Parmaksız
510b5f08be
doc: Update installation instructions for Arch Linux
`fq` is now moved to the Arch Linux [community] repository:
<https://archlinux.org/packages/community/x86_64/fq/>

Signed-off-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2021-12-29 13:10:57 +03:00
Mattias Wadman
9b47806c55
Merge pull request #39 from wader/doc-improve1
doc: Add hopes, pronounce and some more examples
2021-12-28 23:23:25 +01:00
Mattias Wadman
63485efda8 doc: Add hopes, pronounce and some more examples 2021-12-28 23:13:23 +01:00
Mattias Wadman
1a4b332511
Merge pull request #32 from wader/refactor-move-registry-to-decode
interp: Move _registry to decode
2021-12-25 16:33:26 +01:00
Mattias Wadman
55b1d5c3e7 interp: Move _registry to decode
More related to decode than interp. Maybe should have a format.go?
2021-12-25 16:29:45 +01:00