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§
- Online
Probe - Result of a single URL probe against the CRA standards catalogue.
statusis a verbatim HTTP status string (e.g. “200 OK”) or an error description prefixed witherror:. - Query
Filter - Filter criteria for querying components across SBOMs.
- Tracked
Standard - One tracked artefact in the CRA standards landscape.
Enums§
- Verify
Action - Verify action to perform
- VexAction
- VEX action to perform.
- VexExport
Format - Export format for
vex export. CSAF v2.0 is the only one wired up today; OpenVEX / CycloneDX VEX emit can be added later. - Watch
Output Format - 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
timeoutand return the resultingOnlineProbelist. Without theenrichmentfeature the probes are returned with a static “feature disabled” status string. - run_
cra_ docs - Run the
cra-docscommand. Generates 3 Markdown files inoutput_dir. - run_
cra_ standards_ watch - Run the
cra-standards-watchcommand. - 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.