feat(cli): Add --name/-n to session remove and --id/-i alias for session export (#3941)

This commit is contained in:
Gary Zhou
2025-08-11 18:40:54 -04:00
committed by GitHub
parent 9d2b6dec89
commit 615d1fca04
2 changed files with 11 additions and 1 deletions
+6 -1
View File
@@ -99,7 +99,12 @@ enum SessionCommand {
},
#[command(about = "Remove sessions. Runs interactively if no ID or regex is provided.")]
Remove {
#[arg(short, long, help = "Session ID to be removed (optional)")]
#[arg(
short,
long,
alias = "name",
help = "Session ID to be removed (optional)"
)]
id: Option<String>,
#[arg(short, long, help = "Regex for removing matched sessions (optional)")]
regex: Option<String>,