jqlog

    jqlog command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.3
    License
    Apache-2.0
    Last updated
    last month
    Downloads
    230

    #jqlog

    Version 0.2.3 behavior is documented here. The support record separates local verification from published MoonX behavior; moonx examples use registry releases.

    cli/jqlog applies a jq-compatible filter to each valid JSON line and skips non-JSON lines. The first operand is the filter; an optional second operand is raw input text (- selects stdin). Before the filter, -f/--file PATH reads input from a file, and -h/--help prints usage. File-access authorization belongs to the caller or host. The evaluator is MoonJQ 0.2.0 with the same string-conversion and Unicode-scalar slice adapter as cli/jq. Invalid JSON lines are skipped; filter evaluation errors return nonzero and preserve results already written. Each result is emitted as compact JSON followed by a newline. Options precede the filter; -- ends option parsing for a filter beginning with -.

    --help and parser errors always end with a newline so output can be safely composed with other command-line tools.

    cat logs.ndjson | moonx cli/jqlog '.message' moonx cli/jqlog -f logs.ndjson '.message'

    #Standalone metadata

    Standalone --version prints exactly jqlog 0.2.3 followed by one newline. Standalone --help starts with Usage: jqlog, lists both metadata options, and ends with a newline. Both write to stdout, leave stdin unread, and exit with status 0. Exact-version publication and verification remain recorded separately in the support record.

    Source Files