havocompare 0.8.0

A flexible rule-based file and folder comparison tool and crate including nice html reporting. Compares CSVs, JSON, text files, pdf-texts and images.
Documentation
use tracing::{info, Level};
use tracing_subscriber::FmtSubscriber;

fn main() {
    // enable colors on windows cmd.exe
    // does not fail on powershell, even though powershell can do colors without this
    // will fail on jenkins/qa tough, that's why we need to ignore the result
    let _ = enable_ansi_support::enable_ansi_support();

    let subscriber = FmtSubscriber::builder()
        .with_max_level(Level::INFO)
        .finish();
    tracing::subscriber::set_global_default(subscriber).expect("setting default subscriber failed");
    info!("!Print-Args!");
    let mut terminate_code = 0;
    for arg in std::env::args() {
        info!("Argument: {}", &arg);
        if arg.as_str() == "--exit-with-error" {
            eprintln!("E: setting error code to -1");
            terminate_code = -1;
        }
    }
    std::process::exit(terminate_code);
}