summaryrefslogtreecommitdiffstats
path: root/src/repl/mod.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-10-14 18:20:07 +0800
committerGitHub <noreply@github.com>2024-10-14 18:20:07 +0800
commitaaea0ff7029356108c59198fbbad505277a7c05e (patch)
tree6af3839da4e576c2cf622e398746b37e4e73225b /src/repl/mod.rs
parent349c23647284b3a2cd3cc3fda4d02bb43fc38acf (diff)
downloadaichat-aaea0ff7029356108c59198fbbad505277a7c05e.tar.gz
feat: add CLI option `--empty-session` (#922)
Diffstat (limited to 'src/repl/mod.rs')
-rw-r--r--src/repl/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repl/mod.rs b/src/repl/mod.rs
index a7b2573..5a741c2 100644
--- a/src/repl/mod.rs
+++ b/src/repl/mod.rs
@@ -475,7 +475,7 @@ impl Repl {
},
".clear" => match args {
Some("messages") => {
- self.config.write().clear_session_messages()?;
+ self.config.write().empty_session()?;
}
_ => unknown_command()?,
},