bijux_cli/features/diagnostics/
parity_status.rs1#![forbid(unsafe_code)]
2use std::path::Path;
5
6#[derive(Debug, Clone, PartialEq, Eq)]
8pub struct ParityStatusQuery {
9 pub command_parity_matrix_exists: bool,
11 pub status_report_exists: bool,
13 pub command_migration_matrix_exists: bool,
15}
16
17#[must_use]
19pub fn parity_status_query(workspace_root: &Path) -> ParityStatusQuery {
20 ParityStatusQuery {
21 command_parity_matrix_exists: workspace_root
22 .join("artifacts/parity/command_parity_matrix.json")
23 .exists(),
24 status_report_exists: workspace_root.join("artifacts/status/status.json").exists(),
25 command_migration_matrix_exists: workspace_root
26 .join("artifacts/status/command_migration_matrix.json")
27 .exists(),
28 }
29}