Radish alpha
r
rad:z39mP9rQAaGmERfUMPULfPUi473tY
Radicle terminal user interface
Radicle
Git
bin(patch): Remap `select` to `list` for calls to `rad`
Erik Kundt committed 1 year ago
commit 46db9f99ffd5da0f7606c10138845739d7a0209e
parent c624050
1 file changed +6 -1
modified bin/commands/patch.rs
@@ -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);
        }
    }