feat: remove session hub and related commands from the application

This commit is contained in:
asepharyana
2026-07-11 22:40:45 +07:00
parent 1f182021fb
commit 93d1bbb7c1
11 changed files with 44 additions and 140 deletions
+1 -5
View File
@@ -4,16 +4,14 @@ use crate::app::mode::ModeKind;
pub enum Command {
Help,
Quit,
Resume,
LessonCreate(String),
LessonExport(String),
LessonImport(String),
LessonAccept(String),
LessonReject(String),
LessonList,
Mode(ModeKind),
Clear,
Save,
LessonList,
Login { provider: String },
Unknown(String),
}
@@ -30,9 +28,7 @@ pub fn parse_command(text: &str) -> Command {
match cmd {
"/help" => Command::Help,
"/quit" => Command::Quit,
"/resume" => Command::Resume,
"/clear" => Command::Clear,
"/save" => Command::Save,
"/mode" => {
let mode = match arg1 {
"chat" | "c" => ModeKind::Chat,