Skip to content

Commit

Permalink
Add help menu
Browse files Browse the repository at this point in the history
ai: true
  • Loading branch information
simonrw committed Feb 3, 2025
1 parent 6f7fe02 commit 3fa3bff
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions repl/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ impl App {
tracing::debug!("executing continue command");
self.debugger.r#continue().context("resuming execution")?;
}
"?" => {
println!(". Commands:");
println!(". q - quit");
println!(". w - where");
println!(". c - continue");
}
"" => return Ok(ShouldQuit::False),
other => println!("Unhandled commmand: '{}'", other),
}
Expand Down Expand Up @@ -171,6 +177,7 @@ fn main() -> eyre::Result<()> {

let mut app = App::new(debugger);
tracing::debug!("debugger set up");
println!(". enter '?' for help");
loop {
match app.loop_step() {
Ok(ShouldQuit::True) => break,
Expand Down

0 comments on commit 3fa3bff

Please # to comment.