diff

    diff command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.7
    License
    Apache-2.0
    Last updated
    8 hours ago
    Downloads
    208

    #diff

    Compare text files or directory trees through MoonX.

    #Usage

    moonx cli/diff first.txt second.txt moonx cli/diff -u first.txt second.txt moonx cli/diff -r old-dir new-dir

    Produce normal, unified or context differences. Exit 0 for equal input, 1 for differences and 2 for errors.

    #Common options

    OptionDescription
    -q, --briefReport only whether inputs differ.
    -u, --unifiedSelect unified output.
    -c, --contextSelect context output.
    -i, --ignore-caseIgnore ASCII case differences.
    -w, --ignore-all-spaceIgnore whitespace differences.
    -r, --recursiveCompare directories recursively.
    --helpShow help.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • Inputs are retained in memory. Whitespace and case handling use the supported byte-oriented profile.
    • Directory comparisons requiring unavailable device metadata are rejected; complete GNU directory semantics are not claimed.

    See the compatibility guide for the supported profile.

    Source Files