Radish alpha
r
rad:z39mP9rQAaGmERfUMPULfPUi473tY
Radicle terminal user interface
Radicle
Git
ci(bin): Fix clippy warning
Erik Kundt committed 1 year ago
commit 6b9e82e350bd07d21278c50e4d884986e384f0eb
parent 54a643b
2 files changed +20 -5
added .vscode/launch.json
@@ -0,0 +1,17 @@
+
{
+
    // Use IntelliSense to learn about possible attributes.
+
    // Hover to view descriptions of existing attributes.
+
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+
    "version": "0.2.0",
+
    "configurations": [
+
        {
+
            "type": "lldb",
+
            "request": "launch",
+
            "name": "Debug",
+
            "program": "${workspaceFolder}/target/debug/rad-tui",
+
            "args": ["patch", "review", "caa79dd"],
+
            // "cwd": "${workspaceFolder}"
+
            "cwd": "/home/erikli/projects/radicle/dev/radicle-tui/"
+
        }
+
    ]
+
}

\ No newline at end of file
modified bin/main.rs
@@ -170,12 +170,10 @@ fn run(command: Command) -> Result<(), Option<anyhow::Error>> {

            if let Some(exe) = exe.map(|s| s.to_str()) {
                run_other(exe, &opts.args[1..])?;
+
            } else if opts.forward {
+
                run_other(None, &[])?;
            } else {
-
                if opts.forward {
-
                    run_other(None, &[])?;
-
                } else {
-
                    print_help()?;
-
                }
+
                print_help()?;
            }
        }
    }