[yabridgectl] Print yabridge host paths in status

This commit is contained in:
Robbert van der Helm
2021-07-20 02:00:53 +02:00
parent 503720a9ca
commit 6d76daff80
2 changed files with 25 additions and 0 deletions
+19
View File
@@ -113,6 +113,25 @@ pub fn show_status(config: &Config) -> Result<()> {
.map(|(path, arch)| format!("'{}' ({})", path.display(), arch))
.unwrap_or_else(|| "<not found>".red().to_string())
);
println!(
"yabridge-host.exe: {}",
files
.yabridge_host_exe
.as_ref()
// We don't care about the actual path, but the file should at least exist
.zip(files.yabridge_host_exe_so.as_ref())
.map(|(path, _)| format!("'{}'", path.display()))
.unwrap_or_else(|| "<not found>".red().to_string())
);
println!(
"yabridge-host-32.exe: {}\n",
files
.yabridge_host_32_exe
.as_ref()
.zip(files.yabridge_host_32_exe_so.as_ref())
.map(|(path, _)| format!("'{}'", path.display()))
.unwrap_or_else(|| "<not found>".red().to_string())
);
}
Err(err) => {
println!("Could not find yabridge's files: {}\n", err);