Skip to main content

Module cli

Module cli 

Source
Expand description

CLI command handlers.

This module provides testable command handlers that are invoked by main.rs. Each handler implements the business logic for a specific CLI subcommand.

Re-exports§

pub use crate::config::DiffConfig;
pub use crate::config::ViewConfig;

Structs§

OnlineProbe
Result of a single URL probe against the CRA standards catalogue. status is a verbatim HTTP status string (e.g. “200 OK”) or an error description prefixed with error:.
QueryFilter
Filter criteria for querying components across SBOMs.
TrackedStandard
One tracked artefact in the CRA standards landscape.

Enums§

VerifyAction
Verify action to perform
VexAction
VEX action to perform.
VexExportFormat
Export format for vex export. CSAF v2.0 is the only one wired up today; OpenVEX / CycloneDX VEX emit can be added later.
WatchOutputFormat
Output format for cra-standards-watch.

Functions§

cra_catalogue
Borrow the curated catalogue. Watch-loop integration probes these URLs on a configurable interval and surfaces status drift through [crate::watch::alerts::AlertSink].
probe_cra_standards
Probe each entry’s URL with timeout and return the resulting OnlineProbe list. Without the enrichment feature the probes are returned with a static “feature disabled” status string.
run_cra_docs
Run the cra-docs command. Generates 3 Markdown files in output_dir.
run_cra_standards_watch
Run the cra-standards-watch command.
run_diff
Run the diff command, returning the desired exit code.
run_diff_multi
Run the diff-multi command (1:N comparison), returning the desired exit code.
run_enrich
Run the enrich command.
run_license_check
Run the license-check command.
run_matrix
Run the matrix command (N×N comparison), returning the desired exit code.
run_merge
Run the merge command.
run_quality
Run the quality command, returning the desired exit code.
run_query
Run the query command.
run_tailor
Run the tailor command.
run_timeline
Run the timeline command, returning the desired exit code.
run_validate
Run the validate command
run_verify
Run the verify command.
run_vex
Run the vex subcommand.
run_view
Run the view command
run_watch
Run the watch command with the given configuration.