From 3fa3bffe4e30ae03c48f055ed1bb4b6694b59fce Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Mon, 3 Feb 2025 22:14:42 +0000 Subject: [PATCH] Add help menu ai: true --- repl/src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/repl/src/main.rs b/repl/src/main.rs index 2cb6495..39cdda3 100644 --- a/repl/src/main.rs +++ b/repl/src/main.rs @@ -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), } @@ -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,