Skip to content

Commit e3d2317

Browse files
committed
add planning input checks to reconfigurator-cli's blippy call
1 parent da15ab2 commit e3d2317

File tree

1 file changed

+6
-2
lines changed
  • dev-tools/reconfigurator-cli/src

1 file changed

+6
-2
lines changed

dev-tools/reconfigurator-cli/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2134,8 +2134,12 @@ fn cmd_blueprint_blippy(
21342134
let resolved_id =
21352135
state.system().resolve_blueprint_id(args.blueprint_id.into())?;
21362136
let blueprint = state.system().get_blueprint(&resolved_id)?;
2137-
let report =
2138-
Blippy::new(&blueprint).into_report(BlippyReportSortKey::Severity);
2137+
let planning_input = sim
2138+
.planning_input(blueprint)
2139+
.context("failed to construct planning input")?;
2140+
let report = Blippy::new(&blueprint)
2141+
.check_against_planning_input(&planning_input)
2142+
.into_report(BlippyReportSortKey::Severity);
21392143
Ok(Some(format!("{}", report.display())))
21402144
}
21412145

0 commit comments

Comments
 (0)