all2md.cli.commands.diff

Document comparison and diff generation command.

This module provides the diff command for comparing two documents of any supported format and generating unified, HTML, or JSON diff output. It supports various comparison granularities (block, sentence, word) and context options similar to traditional diff tools.

all2md.cli.commands.diff.handle_diff_command(args: list[str] | None = None) int

Handle diff command to compare two documents.

Parameters:

args (list[str], optional) – Command line arguments (beyond ‘diff’)

Returns:

Exit code (0 for success)

Return type:

int