1
1
mirror of https://github.com/wader/fq.git synced 2024-12-23 05:13:30 +03:00
Commit Graph

1745 Commits

Author SHA1 Message Date
@0xb17bea125
4481a77a1c tzif: use scalar.Fn() to define a mapper ad hoc 2022-12-04 21:02:39 +09:00
@0xb17bea125
abde823a79 tzif: use PeekFindByte() to find end of the string 2022-12-04 21:02:39 +09:00
@0xb17bea125
2ee6360b97 support tzif (time zone information format) 2022-12-04 21:02:39 +09:00
Mattias Wadman
42debe5871 dev,doc,make: Cleanup makefile and have proper targets for *.md and *.svg
Update format dev docs to only generate README.md and doc/foramts.md to not
cause formats.svg conflicts.
2022-12-04 12:37:10 +01:00
David McDonald
b872b1a337 doc: remake 2022-12-03 17:36:56 -06:00
David McDonald
b45f9fa67b decode: improve stack push/pop 2022-12-03 15:27:59 -06:00
David McDonald
62f377c2fe doc: fixes snippet for recursive bookmark searching 2022-12-03 15:24:49 -06:00
Mattias Wadman
7f7bf1e125
Merge pull request #501 from wader/doc-usage-dev-tips
doc,dev: Add more usage and dev tips
2022-12-03 19:29:32 +01:00
Mattias Wadman
6fc84a885c doc,dev: Add more usage and dev tips 2022-12-03 19:00:47 +01:00
David McDonald
d199793af6 created stack type 2022-12-02 00:29:29 -06:00
David McDonald
b2aeac6ad3 updates bplist fq tests 2022-12-01 23:45:48 -06:00
David McDonald
f5e25fca26 updated docs 2022-12-01 23:31:57 -06:00
David McDonald
55f4f1aa04 moved a flag bit fields into correct positions 2022-12-01 23:31:57 -06:00
David McDonald
c7d00b87b6 fixes unknown bit ranges 2022-12-01 23:31:57 -06:00
David McDonald
cb15b37175 added checks to prevent infinite looping and recursion 2022-12-01 23:31:57 -06:00
David McDonald
9bd65f93b7 migrates tests to per-sample files 2022-12-01 23:31:57 -06:00
David McDonald
7d13cf7312 adds flag parsing to applebookmark 2022-12-01 23:31:57 -06:00
David McDonald
1352598af9 removed commented out line 2022-12-01 23:31:57 -06:00
David McDonald
a23ac8f553 updates fqtest for torepr in apple_bookmarkdata 2022-12-01 23:31:57 -06:00
David McDonald
1e1fc551eb fixed one more snake_case letter 2022-12-01 23:31:57 -06:00
David McDonald
d0b76cae23 fixes broken test and removes long link from markdown body 2022-12-01 23:31:57 -06:00
David McDonald
c244533540 added some sfl2 test files to bplist package 2022-12-01 23:31:57 -06:00
David McDonald
64351e8b44 fixes tests and adds torepr test 2022-12-01 23:31:57 -06:00
David McDonald
f7d7a49fb6 missed a letter on last commit - converting to snake_case 2022-12-01 23:31:57 -06:00
David McDonald
0c216dff48 refactors some decoder logic in apple_bookmark for better querying 2022-12-01 23:31:57 -06:00
David McDonald
44c91d8296 tweaks apple_bookmark markdown documentation 2022-12-01 23:31:57 -06:00
David McDonald
f535ad3de9 fixes spacing in jq files 2022-12-01 23:31:57 -06:00
David McDonald
a351c346f6 removes unused function 2022-12-01 23:31:57 -06:00
David McDonald
253033cc4c fixes broken uid parsing in plist decoder 2022-12-01 23:31:57 -06:00
David McDonald
63a3ca20c4 removes underscore from apple_bookmark package name 2022-12-01 23:31:57 -06:00
David McDonald
4a28e44f44 changes decoder package name from bookmark to apple_bookmark 2022-12-01 23:31:57 -06:00
David McDonald
81269430fe removed unnecessary conversions 2022-12-01 23:31:57 -06:00
David McDonald
d0b044c2f0 converts to snake_case and refactors decode helper 2022-12-01 23:31:57 -06:00
David McDonald
5146f28dbb fixes broken test for all.fqtest 2022-12-01 23:31:57 -06:00
David McDonald
5b1455e777 removed unused function 2022-12-01 23:31:57 -06:00
David McDonald
0a72635a78 remade documentation 2022-12-01 23:31:57 -06:00
David McDonald
6f4d1cb1de updated documentation 2022-12-01 23:31:57 -06:00
David McDonald
dbc6fccdda updated doc with apple reference 2022-12-01 23:31:57 -06:00
David McDonald
34db9d7fea regenerated docs, added tests, fixed torepr 2022-12-01 23:31:57 -06:00
David McDonald
8f930aacee forgot to add bookmark.jq in last commit 2022-12-01 23:31:57 -06:00
David McDonald
0287ffa4dc decoding well but torepr needs work 2022-12-01 23:31:56 -06:00
David McDonald
71b17d0382 apple bookmarkdata decoder initial commit 2022-12-01 23:31:56 -06:00
Mattias Wadman
1dd9c8759a
Merge pull request #500 from wader/rename-unknown-gap
decode,interp: Rename unknown gap fields from "unknown#" to "gap#"
2022-12-01 21:07:11 +01:00
Mattias Wadman
e77f776999 decode,interp: Rename unknown gap fields from "unknown#" to "gap#"
Think it makes it clearer and also less likely to collide with a field
name a deocder wants to use.
2022-12-01 20:43:30 +01:00
Mattias Wadman
012e7527f0
Merge pull request #499 from wader/bit-format-default-string
interp: Change default bits_format=string
2022-12-01 18:08:12 +01:00
Mattias Wadman
8d69f1fb23 interp: Change default bits_format=string
I think this is more intuitive but might in some case cause very large JSON output
but maybe that less common or expected. In does cases i think you either want to
use some other bits_format (md5, truncate, etc) or you delete/transform the jq value
before turn it into JSON.

Strings in gojq are binary safe so you can use to hold raw bytes. But note that
convert the binary into JSON is lossy, same as the JSON standard.

Add bits_format option documentation.
2022-12-01 17:49:34 +01:00
Mattias Wadman
36ea3a95cd
Merge pull request #497 from wader/help-nicer-line-break
interp,help: Properly count line length when breaking on whole words
2022-11-29 19:08:00 +01:00
Mattias Wadman
42d9f2c27d interp,help: Properly count line length when breaking on whole words
Whitespace between words were not counted
2022-11-29 18:59:32 +01:00
Mattias Wadman
684e24d1a4
Merge pull request #496 from wader/interp-mimic-jq-usage-only-expr-tty
interp: mimic jq: if expr arg is given read stdin even if tty
2022-11-29 18:56:28 +01:00
Mattias Wadman
ba88a68466 interp: mimic jq: if expr arg is given read stdin even if tty 2022-11-29 18:39:57 +01:00