Skip to content

Commit 6b4d8a7

Browse files
committed
Add a crude solve result output to cmd_explain
1 parent 42fe48a commit 6b4d8a7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

crates/spk-cli/cmd-explain/src/cmd_explain.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use clap::Args;
66
use miette::Result;
77
use spk_cli_common::{flags, CommandArgs, Run};
8-
use spk_solve::AbstractSolver;
8+
use spk_solve::{AbstractSolver, Package};
99

1010
/// Show the resolve process for a set of packages.
1111
#[derive(Args)]
@@ -90,7 +90,10 @@ impl Run for Explain {
9090
formatter.run_and_print_resolve(&solver).await?;
9191
} else {
9292
// TODO: print the solve
93-
solver.solve().await?;
93+
let solution = solver.solve().await?;
94+
for item in solution.items() {
95+
println!("{}", item.spec.ident());
96+
}
9497
}
9598

9699
Ok(0)

0 commit comments

Comments
 (0)