[yabridgectl] List sync target dirs in status

This acts as a useful visual reminder.
This commit is contained in:
Robbert van der Helm
2022-04-17 20:44:45 +02:00
parent 3970bc7f52
commit 8abb960813
2 changed files with 16 additions and 0 deletions
+2
View File
@@ -93,6 +93,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).
once after updating to yabridge 4.0, yabridge can now be updated without
needing to rerun `yabridgectl sync`. This is particularly useful when using a
distro packaged version of yabridge.
- `yabridgectl status` now lists the locations where bridged VST2 and VST3
plugins will be set up.
- The VST3 subdirectory detection is more robust and can now handle arbitrary
directories, not just directories that are called `VST3`. This, of course,
+14
View File
@@ -100,6 +100,17 @@ pub fn show_status(config: &Config) -> Result<()> {
.unwrap_or_else(|| String::from("<auto>"))
);
match config.vst2_location {
Vst2InstallationLocation::Centralized => {
println!("VST2 location: '{}'", yabridge_vst2_home().display());
}
Vst2InstallationLocation::Inline => {
println!("VST2 location: inline next to the Windows plugin file");
}
}
// This is fixed, but just from a UX point of view it might be nice to have as a reminder
println!("VST3 location: '{}'\n", yabridge_vst3_home().display());
let files = config.files();
match &files {
Ok(files) => {
@@ -161,6 +172,9 @@ pub fn show_status(config: &Config) -> Result<()> {
),
};
// TODO: With the symlink installation method gone this does not make a lot of sense
// anymore, but it does seem useful to have some sort of label telling you that a
// plugin has been set up
let status_str = match status {
Some(NativeFile::Regular(_)) => "copy".green(),
Some(NativeFile::Symlink(_)) => "symlink".green(),