Skip to content

Commit

Permalink
Removed loop sentinal value
Browse files Browse the repository at this point in the history
Signed-off-by: David Gilligan-Cook <dcook@imageworks.com>
  • Loading branch information
dcookspi committed Aug 8, 2024
1 parent 22206f8 commit 3645025
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/spk-solve/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,7 @@ where
// or disable when this menu is active
if let Some(state) = current_state {
// Simplistic menu for now
let mut done = false;
while !done {
loop {
// Show a compressed version of the menu
print!(
"{} Select one of [r,u,v,o,s,a,c,?,C-c]> ",
Expand All @@ -341,15 +340,15 @@ where
's' | 'a' => self.show_state(state),
'c' => {
self.remove_step_and_stop_setting();
done = true;
break;
}
// TODO: could look at adding other things in future:
// - show dep graph image based on current resolved/unresolved
// - a breakpoint for a request, with continue till such request
// - launch spk env based on current resolved packages
// - rewind the solve
// - save/restore point for the solve, for use in tests
_ => done = true,
_ => break,
}
}
}
Expand Down

0 comments on commit 3645025

Please sign in to comment.