From 932b111b7ddeaeafb5215a35f4d2f76a4406c945 Mon Sep 17 00:00:00 2001 From: Paul Butler Date: Wed, 29 Jan 2025 17:46:56 -0500 Subject: [PATCH] support history (#80) --- rust/forevervm/src/commands/repl.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/forevervm/src/commands/repl.rs b/rust/forevervm/src/commands/repl.rs index 9c1f64f..9be1e16 100644 --- a/rust/forevervm/src/commands/repl.rs +++ b/rust/forevervm/src/commands/repl.rs @@ -24,6 +24,7 @@ pub async fn machine_repl(machine_name: Option) -> anyhow::Result<( match readline { Ok(line) => { + rl.add_history_entry(line.as_str())?; let result = repl.exec(&line).await; match result { Ok(mut result) => {