diff options
| author | sigoden <sigoden@gmail.com> | 2024-10-14 18:20:07 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-14 18:20:07 +0800 |
| commit | aaea0ff7029356108c59198fbbad505277a7c05e (patch) | |
| tree | 6af3839da4e576c2cf622e398746b37e4e73225b /src/repl | |
| parent | 349c23647284b3a2cd3cc3fda4d02bb43fc38acf (diff) | |
| download | aichat-aaea0ff7029356108c59198fbbad505277a7c05e.tar.gz | |
feat: add CLI option `--empty-session` (#922)
Diffstat (limited to 'src/repl')
| -rw-r--r-- | src/repl/mod.rs | 2 |
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()?, }, |
