Add interactive deletion of sessions (#2357)

Co-authored-by: Yingjie He <yingjiehe@squareup.com>
This commit is contained in:
Raduan Al-Shedivat
2025-05-25 19:27:15 +02:00
committed by GitHub
parent 7699fc261f
commit 7e28762cac
2 changed files with 73 additions and 28 deletions
+5 -10
View File
@@ -90,17 +90,12 @@ enum SessionCommand {
)]
ascending: bool,
},
#[command(about = "Remove sessions")]
#[command(about = "Remove sessions. Runs interactively if no ID or regex is provided.")]
Remove {
#[arg(short, long, help = "session id to be removed", default_value = "")]
id: String,
#[arg(
short,
long,
help = "regex for removing matched session",
default_value = ""
)]
regex: String,
#[arg(short, long, help = "Session ID to be removed (optional)")]
id: Option<String>,
#[arg(short, long, help = "Regex for removing matched sessions (optional)")]
regex: Option<String>,
},
}