pub fn run_validate(
sbom_path: PathBuf,
standard: String,
output: ReportFormat,
output_file: Option<PathBuf>,
fail_on_warning: bool,
summary: bool,
cra_sidecar_path: Option<PathBuf>,
cra_product_class: Option<String>,
) -> Result<i32>Expand description
Run the validate command, returning the desired exit code.
ยงExit codes
exit_codes::SUCCESS(0): compliant (no errors; no warnings when--fail-on-warningis set)exit_codes::COMPLIANCE_ERRORS(1): one or more compliance errors foundexit_codes::COMPLIANCE_WARNINGS(2): warnings found with--fail-on-warning
The caller is responsible for calling std::process::exit() with the
returned code when it is non-zero.