bin(patch): Remap select to list for calls to rad

This commit is contained in:
Erik Kundt
2025-01-28 00:10:18 +01:00
parent c62405043b
commit 46db9f99ff
+6 -1
View File
@@ -279,7 +279,12 @@ pub async fn run(options: Options, ctx: impl terminal::Context) -> anyhow::Resul
// Run TUI with patch review interface
interface::review(opts.clone(), profile, rid, patch_id).await?;
}
Operation::Other { args } => {
Operation::Other { mut args } => {
if let Some(arg) = args.first() {
if arg.to_string_lossy().as_ref() == "select" {
args = [vec!["list".into()], args[1..].to_vec()].concat();
}
}
let _ = crate::terminal::run_rad("patch", &args);
}
}