[yabridgectl] Show VST3 module type and arch

In `yabridgectl status`.
This commit is contained in:
Robbert van der Helm
2021-02-26 15:08:29 +01:00
parent e6ec8819cb
commit ebd6c95ceb
3 changed files with 37 additions and 8 deletions
+13 -2
View File
@@ -121,7 +121,17 @@ pub fn show_status(config: &Config) -> Result<()> {
// be added both with and without a trailing slash
println!("\n{}", path.join("").display());
for (plugin, status) in search_results.installation_status() {
for (plugin, (status, vst3_module)) in search_results.installation_status() {
let plugin_type = match vst3_module {
Some(module) => format!(
"{}, {}, {}",
"VST3".magenta(),
module.type_str(),
module.architecture
),
None => "VST2".cyan().to_string(),
};
let status_str = match status {
Some(NativeFile::Regular(_)) => "copy".green(),
Some(NativeFile::Symlink(_)) => "symlink".green(),
@@ -130,8 +140,9 @@ pub fn show_status(config: &Config) -> Result<()> {
};
println!(
" {} :: {}",
" {} :: {}, {}",
plugin.strip_prefix(path).unwrap_or(&plugin).display(),
plugin_type,
status_str
);
}