From 8433b1fcd73dda937582d5a99127f851562c2dae Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 29 Apr 2024 02:47:00 +0000 Subject: [PATCH] chore: update help-texts/warnings in repl --- src/repl/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/repl/mod.rs b/src/repl/mod.rs index 21b3ae9..4c50c2f 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -32,7 +32,7 @@ lazy_static! { ReplCommand::new(".model", "Change the current LLM", State::all()), ReplCommand::new( ".prompt", - "Create a temporary role using a custom prompt", + "Create a temporary role using a prompt", State::able_change_role() ), ReplCommand::new( @@ -116,7 +116,7 @@ impl Repl { } Ok(Signal::CtrlC) => { self.abort.set_ctrlc(); - println!("(To exit, press Ctrl+D or type .exit)\n"); + println!("(To exit, press Ctrl+D or enter \".exit\")\n"); } Ok(Signal::CtrlD) => { self.abort.set_ctrld(); @@ -293,7 +293,7 @@ impl Repl { let version = env!("CARGO_PKG_VERSION"); print!( r#"Welcome to aichat {version} -Type ".help" for more information. +Type ".help" for additional help. "# ) } @@ -410,7 +410,7 @@ impl Validator for ReplValidator { } fn unknown_command() -> Result<()> { - bail!(r#"Unknown command. Type ".help" for more information."#); + bail!(r#"Unknown command. Type ".help" for additional help."#); } fn dump_repl_help() { @@ -423,8 +423,8 @@ fn dump_repl_help() { r###"{head} Type ::: to start multi-line editing, type ::: to finish it. -Press Ctrl+O to open an editor to edit line input. -Press Ctrl+C to cancel the response, Ctrl+D to exit the REPL"###, +Press Ctrl+O to open an editor for editing the input buffer. +Press Ctrl+C to cancel the response, Ctrl+D to exit the REPL."###, ); }