summaryrefslogtreecommitdiffstats
path: root/src/repl/handler.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-10-30 10:36:08 +0800
committerGitHub <noreply@github.com>2023-10-30 10:36:08 +0800
commitb3e687943811fd48589d7030122c33c7e9867ec9 (patch)
treeecd1d829420f928a7df4a46d7bab0db24cb66755 /src/repl/handler.rs
parent44ea384ee59fafb76882e1d6687bc4cbc6d61611 (diff)
downloadaichat-b3e687943811fd48589d7030122c33c7e9867ec9.tar.gz
feat: deprecate prompt, remove `--prompt` and `.prompt` (#176)
Diffstat (limited to 'src/repl/handler.rs')
-rw-r--r--src/repl/handler.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/repl/handler.rs b/src/repl/handler.rs
index bafad14..ff6cf56 100644
--- a/src/repl/handler.rs
+++ b/src/repl/handler.rs
@@ -18,7 +18,6 @@ pub enum ReplCmd {
SetModel(String),
SetRole(String),
UpdateConfig(String),
- Prompt(String),
ClearRole,
ViewInfo,
StartSession(Option<String>),
@@ -79,10 +78,6 @@ impl ReplCmdHandler {
self.config.write().clear_role()?;
print_now!("\n");
}
- ReplCmd::Prompt(prompt) => {
- self.config.write().add_prompt(&prompt)?;
- print_now!("\n");
- }
ReplCmd::ViewInfo => {
let output = self.config.read().info()?;
print_now!("{}\n\n", output.trim_end());