licence_audit/sbom_command

Values

pub fn run(
  options: cli.SbomOptions,
  metadata_fetcher: fn(String) -> Result(
    hex.PackageMetadata,
    hex.Error,
  ),
  publication_fetcher: fn(String, String) -> Result(
    hex.Publication,
    hex.Error,
  ),
  batch_fetcher: fn(List(String)) -> Result(
    List(osv.BatchEntry),
    osv.Error,
  ),
  advisory_fetcher: fn(List(String), progress.Reporter) -> #(
    Result(List(osv.Vulnerability), error.Error),
    progress.Reporter,
  ),
  source_clients: notice.Clients,
  reporter: progress.Reporter,
) -> #(Result(String, error.Error), progress.Reporter)

Return formatted SBOM text, or an empty string after writing the output. The caller owns command scope, diagnostics, exit codes, and progress flush.

✨ Search Document