Add interactive deletion of sessions (#2357)
Co-authored-by: Yingjie He <yingjiehe@squareup.com>
This commit is contained in:
committed by
GitHub
parent
7699fc261f
commit
7e28762cac
@@ -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>,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user