1
1
mirror of https://github.com/wader/fq.git synced 2024-12-14 07:13:20 +03:00
Commit Graph

513 Commits

Author SHA1 Message Date
Mattias Wadman
3e2a233e50
Merge pull request #72 from wader/doc-dev-tips
doc: Add more dev tips
2022-01-11 12:34:07 +01:00
Mattias Wadman
809210bea6 doc: Add more dev tips 2022-01-11 12:28:21 +01:00
Mattias Wadman
05df5a9092
Merge pull request #69 from wader/msgpack
msgpack: Add decoder
2022-01-10 21:38:59 +01:00
Mattias Wadman
c782e0beae
Merge pull request #70 from wader/repl-jqish-prompt
repl: Make prompt for array and iter more jqish
2022-01-10 20:07:27 +01:00
Mattias Wadman
9770b0046b repl: Make prompt for array and iter more jqish
Really need to refactor script.go some day into a proper parser
2022-01-10 20:02:43 +01:00
Mattias Wadman
a6bf62ce19 msgpack: Add decoder
Fixes #25
2022-01-10 19:33:09 +01:00
Mattias Wadman
ece2fd78ec
Merge pull request #64 from wader/bencode
bencode: Add decoder
2022-01-10 10:56:46 +01:00
Mattias Wadman
af8e7efc61 bencode: Add decoder
Closes #63
2022-01-10 10:52:14 +01:00
Mattias Wadman
d066a86d76
Merge pull request #66 from wader/doc-alpine-go-run
doc: Add alpine and go run
2022-01-09 17:06:54 +01:00
Mattias Wadman
a0ccde99a5
Merge pull request #65 from wader/doc-dev-help
doc,dev: Add some more decoder implementation help
2022-01-09 17:03:42 +01:00
Mattias Wadman
0c1716beab doc: Add alpine and go run 2022-01-09 17:02:20 +01:00
Mattias Wadman
b4694b6b9b doc,dev: Add some more decoder implementation help 2022-01-09 16:57:11 +01:00
Mattias Wadman
0bad0ae27d
Merge pull request #62 from wader/bitops-doc-err-tests
interp: Document bit opts funcs and add some error tests
2022-01-09 10:48:10 +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
2743585219
Merge pull request #61 from wader/bitops-funcs
interp,fq: Make bit operators normal functions
2022-01-09 01:10:45 +01:00
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
ef251cc61b
Merge pull request #60 from Akaame/all_platforms
elf: fix all-platforms naming typo
2022-01-08 14:13:57 +01:00
siddik.acil
0cf486dcf1 elf: fix all-platforms naming typo 2022-01-08 13:42:08 +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