Skip to main content

run_convert

Function run_convert 

Source
pub fn run_convert(
    file: &PathBuf,
    target: &str,
    output_file: Option<&PathBuf>,
    preserve: bool,
    quiet: bool,
) -> Result<i32>
Expand description

Run the convert command.

target is the raw --to value (e.g. “cyclonedx”). When preserve is set, each component’s verbatim source JSON is captured before emission so format-specific blocks the canonical model can’t fully reconstruct (cryptoProperties, evidence) are spliced back where present.