provenance-cli 0.2.1

Command-line interface for Provenance requirements traceability
1
2
3
4
5
6
7
8
9
use crate::output::{self, OutputFormat};
use camino::Utf8PathBuf;
use provenance_store::{cache, layout::ProvenanceLayout};

pub(super) async fn handle(repo: Utf8PathBuf, format: OutputFormat) -> anyhow::Result<()> {
    let report = cache::materialize_state(&ProvenanceLayout::new(repo)).await?;
    output::print(format, &report)?;
    Ok(())
}