From 582f56e915a7c88eb0372496e298c9944f5832ae Mon Sep 17 00:00:00 2001 From: Patrick Jackson Date: Tue, 26 Mar 2024 17:00:28 -0600 Subject: feat: add `save_session` config item and `--save-session` cli option (#370) * fix: sessions should save when exiting * feat: improve save sessions * feat: do not allow saving the temp session name * feat: allow creating a session without interactive use * feat: add `save_session` config and `--save-session` option --------- Co-authored-by: sigoden --- src/repl/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/repl/mod.rs') diff --git a/src/repl/mod.rs b/src/repl/mod.rs index 26a3fb4..1633774 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -212,7 +212,7 @@ impl Repl { self.config.write().clear_role()?; } Some("session") => { - self.config.write().end_session()?; + self.config.write().end_session(true)?; } Some(_) => unknown_command()?, None => { -- cgit v1.2.3