Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
cli: mention binary names as part of unknown
Merged fintohaps opened 9 months ago

When we fail to get the info for the binary names of radicle-node and git-remote-rad, we still mention the binary name which is usually a part of their output.

1 file changed +2 -2 fdb1ac4e 0aaa81f8
modified crates/radicle-cli/src/commands/debug.rs
@@ -71,9 +71,9 @@ fn debug(profile: Option<&Profile>) -> anyhow::Result<()> {
        rad_exe: std::env::current_exe().ok(),
        rad_version: VERSION,
        radicle_node_version: stdout_of("radicle-node", &["--version"])
-
            .unwrap_or("<unknown>".into()),
+
            .unwrap_or("radicle-node <unknown>".into()),
        git_remote_rad_version: stdout_of("git-remote-rad", &["--version"])
-
            .unwrap_or("<unknown>".into()),
+
            .unwrap_or("git-remote-rad <unknown>".into()),
        git_version: stdout_of("git", &["--version"]).unwrap_or("<unknown>".into()),
        ssh_version: stderr_of("ssh", &["-V"]).unwrap_or("<unknown>".into()),
        git_head: GIT_HEAD,