Skip to main content

run

Function run 

Source
pub fn run(
    before: &Path,
    after: &Path,
    render_options: RenderOptions,
) -> Result<bool>
Expand description

Entry point for --mode json (main.rs): computes the diff exactly like headless::run and the interactive TUI do (same compute_diff - same parsing, same ASTDiff, same TextDiff), then prints it as one pretty-printed JSON object on stdout. See this module’s doc comment for the schema. Returns whether the two files differ at all (raw byte comparison, same convention as headless::run) so main.rs can turn it into a diff-style exit code.