[yabridgectl] Don't mention installation methods

Unless the symlink-based installation method is enabled.
This commit is contained in:
Robbert van der Helm
2022-01-28 00:08:16 +01:00
parent 8b6650a04e
commit 7f14cdf208
2 changed files with 14 additions and 3 deletions
+6
View File
@@ -27,6 +27,12 @@ Versioning](https://semver.org/spec/v2.0.0.html).
silence and hang afterwards (which a fix in yabridge 3.7.0 previously silence and hang afterwards (which a fix in yabridge 3.7.0 previously
addressed). addressed).
### yabridgectl
- `yabridgectl status` no longer mentions anything about installation methods if
you're using the normal, copy-based installation method. This is a follow-up
to the changes made in yabridgectl 3.8.0.
## [3.8.0] - 2022-01-15 ## [3.8.0] - 2022-01-15
### Added ### Added
+8 -3
View File
@@ -124,7 +124,7 @@ pub fn show_status(config: &Config) -> Result<()> {
.unwrap_or_else(|| "<not found>".red().to_string()) .unwrap_or_else(|| "<not found>".red().to_string())
); );
println!( println!(
"yabridge-host-32.exe: {}\n", "yabridge-host-32.exe: {}",
files files
.yabridge_host_32_exe .yabridge_host_32_exe
.as_ref() .as_ref()
@@ -134,10 +134,15 @@ pub fn show_status(config: &Config) -> Result<()> {
); );
} }
Err(err) => { Err(err) => {
println!("Could not find yabridge's files: {}\n", err); println!("Could not find yabridge's files: {}", err);
} }
} }
println!("installation method: {}", config.method);
// Since the symlink-based installation method is deprecated, don't even mention installation
// methods if it's currently set to copies
if config.method != InstallationMethod::Copy {
println!("\ninstallation method: {}", config.method)
}
for (path, search_results) in results { for (path, search_results) in results {
// Always print these paths with trailing slashes for consistency's sake because paths can // Always print these paths with trailing slashes for consistency's sake because paths can