feat(command): port diff from just-bash
Compare two files line by line. Mirrors the just-bash behavior: -i
only governs the equality test (the unified diff itself is computed
against the original-case content), -q produces the brief differ-
or-not summary, and exit codes follow GNU diff (0 same, 1 differ,
2 trouble) rather than the coreutils-style 0/1/2 split. The
unified diff is generated via pmezard/go-difflib instead of the
jsdiff JS library, so the hunk algorithm and header line lack the
jsdiff-only "===" banner — the output is still a valid unified
patch.
Signed-off-by: Xe Iaso <me@xeiaso.net>
Assisted-by: Claude Opus 4.7 via Claude Code