diff options
| author | sigoden <sigoden@gmail.com> | 2025-01-20 08:44:20 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-20 08:44:20 +0800 |
| commit | ea6f0a2bb1245e5b49859e290ac1c6191e2b17b1 (patch) | |
| tree | c7863d0156c7ce74aaddd473e562df46ea4d3959 | |
| parent | b44fc628fe8b36e4d48ff4295f74ee4225166d1b (diff) | |
| download | aichat-ea6f0a2bb1245e5b49859e290ac1c6191e2b17b1.tar.gz | |
refactor: improve description for repl commands (#1107)
| -rw-r--r-- | src/repl/mod.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/repl/mod.rs b/src/repl/mod.rs index 0d49782..caed10e 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -31,8 +31,8 @@ const MENU_NAME: &str = "completion_menu"; lazy_static::lazy_static! { static ref REPL_COMMANDS: [ReplCommand; 36] = [ ReplCommand::new(".help", "Show this help guide", AssertState::pass()), - ReplCommand::new(".info", "View system info", AssertState::pass()), - ReplCommand::new(".edit config", "Edit configuration file", AssertState::False(StateFlags::AGENT)), + ReplCommand::new(".info", "Show system info", AssertState::pass()), + ReplCommand::new(".edit config", "Modify configuration file", AssertState::False(StateFlags::AGENT)), ReplCommand::new(".model", "Switch LLM model", AssertState::pass()), ReplCommand::new( ".prompt", @@ -46,12 +46,12 @@ lazy_static::lazy_static! { ), ReplCommand::new( ".info role", - "View role info", + "Show role info", AssertState::True(StateFlags::ROLE), ), ReplCommand::new( ".edit role", - "Edit current role", + "Modify current role", AssertState::TrueFalse(StateFlags::ROLE, StateFlags::SESSION), ), ReplCommand::new( @@ -81,12 +81,12 @@ lazy_static::lazy_static! { ), ReplCommand::new( ".info session", - "View session info", + "Show session info", AssertState::True(StateFlags::SESSION_EMPTY | StateFlags::SESSION), ), ReplCommand::new( ".edit session", - "Edit current session", + "Modify current session", AssertState::True(StateFlags::SESSION_EMPTY | StateFlags::SESSION) ), ReplCommand::new( @@ -107,12 +107,12 @@ lazy_static::lazy_static! { ), ReplCommand::new( ".edit agent-config", - "Edit agent configuration file", + "Modify agent configuration file", AssertState::True(StateFlags::AGENT), ), ReplCommand::new( ".info agent", - "View agent info", + "Show agent info", AssertState::True(StateFlags::AGENT), ), ReplCommand::new( @@ -127,7 +127,7 @@ lazy_static::lazy_static! { ), ReplCommand::new( ".edit rag-docs", - "Manage RAG documents", + "Add or remove documents from an existing RAG", AssertState::TrueFalse(StateFlags::RAG, StateFlags::AGENT), ), ReplCommand::new( @@ -137,12 +137,12 @@ lazy_static::lazy_static! { ), ReplCommand::new( ".sources rag", - "View RAG sources for last query", + "Show RAG sources for last query", AssertState::True(StateFlags::RAG), ), ReplCommand::new( ".info rag", - "View RAG info", + "Show RAG info", AssertState::True(StateFlags::RAG), ), ReplCommand::new( |
