moonbit-community/jqlog is the Native/Wasm JSON Lines companion command in theMoonJQ workspace. It applies a jq-compatible filter to each valid JSON line andskips non-JSON lines.
Arguments are parsed with moonbitlang/core/argparse:
-f FILE, --file FILE: read input from a file. --file=FILE is also accepted.
-h, --help: show the generated command help.
--: stop parsing options, allowing a query or input to begin with a hyphen.
The query is required. Omit input or pass - to read stdin; otherwise theoptional input argument is treated as inline JSONL text. File and inline inputare mutually exclusive. Options can appear before or after the query.
Malformed JSON lines are skipped. A query error terminates the result stream,prints a diagnostic, and exits with status 5 after prior results. Query syntaxand binding errors exit with status 3; argument errors exit with status 2.