Mattias Wadman
0b6ef2a9d8
golangci-lint: Disable revive unused-parameter and update for new default config
...
unused-parameter disabled as i prefer to see the names
new default revive config seems to not warn about capital names
2023-03-18 22:56:58 +01:00
Mattias Wadman
dec433fc53
help,markdown: Fix double line breaks when converting to text
...
Also fix ugly last line break hack
2023-03-02 23:38:11 +01:00
Mattias Wadman
8e0dde03d0
decode: Support multiple format args and some rename and refactor
...
This will allow passing both cli options and format options to sub decoder.
Ex: pass keylog option to a tls decoder when decoding a pcap.
Ex: pass decode options to a format inside a http body inside a pcap.
Add ArgAs method to lookup argument based on type. This also makes the format
decode function have same signature as sub decoders in the decode API.
This change decode.Format a bit:
DecodeFn is now just func(d *D) any
DecodeInArg renamed to DefaultInArg
2023-02-18 21:38:51 +01:00
Mattias Wadman
8f39ef6335
bplist: Harmonize ns_keyed_archive jq style a bit
...
Let root arg be a lambda so torepr can be done once
2022-12-20 00:56:19 +01:00
David McDonald
129b4b7026
bplist: doc: update docs to reflect changes to ns_keyed_archiver
2022-12-19 15:24:57 -06:00
David McDonald
a9047c0278
bplist: updates from_ns_keyed_archiver to do automatic torepr based on format detection
2022-12-19 15:18:05 -06:00
David McDonald
9dab3c606c
bplist: minor fix to from_ns_keyed_archiver
2022-12-19 14:22:17 -06:00
David McDonald
448c3efb28
bplist: update docs with from_ns_keyed_archiver reference, add error case to function
2022-12-19 13:30:34 -06:00
David McDonald
cba72dbdf0
bplist: added overload for from_ns_keyed_archiver jq func
2022-12-19 02:04:23 -06:00
David McDonald
98eab8cb5b
decode: rename parameter for consistency
2022-12-17 13:36:16 -06:00
David McDonald
93f2aa5d73
decode: change PosLoopDetector to use generics
2022-12-17 13:26:40 -06:00
David McDonald
3232f9cc15
decode: moves PosLoopDetector into its own package
2022-12-17 02:18:48 -06:00
David McDonald
7c9504c727
decode: moves macho decoder to apple package
2022-12-17 01:54:59 -06:00
David McDonald
708346784f
decode: remove dead code from ns_keyed_archiver
2022-12-17 01:52:46 -06:00
David McDonald
3ec0ba3f25
decode: add ns_keyed_archiver, restructure apple decoder into apple package
2022-12-17 01:47:27 -06:00