Skip to main content

diff

Function diff 

Source
pub fn diff(
    cottas_file_1_path: &str,
    cottas_file_2_path: &str,
    cottas_diff_file_path: &str,
    index: Option<&str>,
    remove_input_files: Option<bool>,
) -> Result<(), Box<dyn Error>>
Expand description

Computes the difference between two Cottas files.

§Arguments

  • cottas_file_1_path - First input file.
  • cottas_file_2_path - Second input file.
  • cottas_diff_file_path - Output file for the diff.
  • index - Optional index type.
  • remove_input_files - Optionally remove input files after diff.

§Errors

Returns an error if diffing fails.