(program: &str, args: &[&str])
| 2462 | } |
| 2463 | |
| 2464 | fn command_text(program: &str, args: &[&str]) -> Option<String> { |
| 2465 | let output = ProcessCommand::new(program).args(args).output().ok()?; |
| 2466 | if !output.status.success() { |
| 2467 | return None; |
| 2468 | } |
| 2469 | Some(String::from_utf8_lossy(&output.stdout).to_string()) |
| 2470 | } |
| 2471 | |
| 2472 | fn detect_install_method() -> InstallMethod { |
| 2473 | let exec_path = std::env::current_exe() |
no test coverage detected