Skip to main content

run_cra_docs_with_force

Function run_cra_docs_with_force 

Source
pub fn run_cra_docs_with_force(
    sbom_path: PathBuf,
    output_dir: PathBuf,
    cra_sidecar_path: Option<PathBuf>,
    cra_product_class: Option<String>,
    force: bool,
) -> Result<()>
Expand description

run_cra_docs with an explicit overwrite decision.

The generated dossier is a starting point the operator completes by hand (_TBD_ placeholders), so a re-run must not silently clobber those edits: when force is false and any dossier file already exists, this errors listing the existing files; --force overwrites them.