1
1
mirror of https://github.com/wader/fq.git synced 2024-12-24 22:05:31 +03:00
fq/pkg/interp
Mattias Wadman 1ddea1ada3 interp,format: Refactor registry usage and use function helpers
Move registry to interp and add support for functions and filesystems.
This will be used later for allow formats to add own functions and fq code.

Add gojqextra function helpers to have more comfortable API to add functions.
Takes care of argument type casting and JQValue:s and some more things.

Refactor interp package to use new function helper and registry. Probably
fixes a bunch of JQValue bugs and other type errors.

Refactor out some mpeg nal things to mpeg format.

Refactor interp jq code into display.q and init.jq.

Remove undocumented aes_ctr funciton, was a test. Hopefully will add more crypto things laster.
2022-07-16 19:24:13 +02:00
..
testdata fairplay: Add basic SPC decoder and PSSH system id 2022-07-07 17:11:55 +02:00
.jq-lsp.jq interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
ansi.jq interp,repl: Add path and value colors to prompt 2022-03-03 18:25:19 +01:00
args_test.jq repl: completion in jq 2021-09-12 13:08:56 +02:00
args.jq interp: Rework formats and options help 2022-03-03 18:25:20 +01:00
assert.jq dev: Add .jq-lsp.jq to add additional builtins for jq-lsp 2022-02-16 19:52:42 +01:00
binary.go interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
binary.jq interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
bitops.go interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
decode.go interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
decode.jq interp: Extract to/from map/struct to own package 2022-06-20 21:24:59 +02:00
decorator.go fq: Use go 1.18 2022-05-20 15:23:16 +02:00
default_register.go interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
dump.go interp: Extract to/from map/struct to own package 2022-06-20 21:24:59 +02:00
encoding.go interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
encoding.jq doc: Correct bencode spec URL 2022-06-13 18:49:34 +02:00
eval.jq interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
format_decode.jq decode,interp: Support for format specific options 2022-05-01 17:08:30 +02:00
format_func.jq decode,interp: Support for format specific options 2022-05-01 17:08:30 +02:00
format_include.jq decode,interp: Support for format specific options 2022-05-01 17:08:30 +02:00
fqtest_test.go interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
funcs_test.jq interp: Add group/0 2022-06-21 15:18:12 +02:00
funcs.jq interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
grep.jq interp: Add internal _is_<type> helpers 2022-05-20 16:49:00 +02:00
help.jq interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
init.jq interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
internal.jq interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
interp.go interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
interp.jq interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
match.go interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
options.jq interp: Rename --decode-file to --argdecode to be more consistent 2022-07-04 12:28:37 +02:00
preview.go fq: Use go 1.18 2022-05-20 15:23:16 +02:00
query_test.jq repl,interp: Refactor repl and slurp 2022-03-01 18:31:00 +01:00
query.go interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
query.jq decode,interp: Support for format specific options 2022-05-01 17:08:30 +02:00
registry_files.jq interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
registry.go interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
repl.jq interp,format: Refactor registry usage and use function helpers 2022-07-16 19:24:13 +02:00
testjq.sh make: Move testjq.sh into pkg/interp 2021-11-12 00:23:16 +01:00