pub fn diff_workflow(settings: &DiffSettings) -> Result<DiffReceipt>Expand description
Runs the diff workflow comparing two receipts or paths.
§Arguments
settings- Diff settings (from, to references)
§Returns
A DiffReceipt showing changes between the two states.
§Example
use tokmd_core::{diff_workflow, settings::DiffSettings};
let settings = DiffSettings {
from: ".".to_string(), // compare current dir to itself as a quick test
to: ".".to_string(),
..Default::default()
};
let receipt = diff_workflow(&settings).expect("Diff failed");
assert!(receipt.totals.delta_code == 0); // delta is zero