mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-17 06:00:03 +02:00
Show the installation method used
This commit is contained in:
@@ -66,6 +66,16 @@ pub enum InstallationMethod {
|
|||||||
Symlink,
|
Symlink,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl InstallationMethod {
|
||||||
|
/// The plural term for this installation methodd, using in string formatting.
|
||||||
|
pub fn plural(&self) -> &str {
|
||||||
|
match &self {
|
||||||
|
InstallationMethod::Copy => "copies",
|
||||||
|
InstallationMethod::Symlink => "symlinks",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl Display for InstallationMethod {
|
impl Display for InstallationMethod {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
match &self {
|
match &self {
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ fn main() {
|
|||||||
Arg::with_name("verbose")
|
Arg::with_name("verbose")
|
||||||
.short('v')
|
.short('v')
|
||||||
.long("verbose")
|
.long("verbose")
|
||||||
.about("Print every plugin yabridge has been set up for"),
|
.about("Print information about plugins being set up or skipped"),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.get_matches();
|
.get_matches();
|
||||||
@@ -295,8 +295,10 @@ fn do_sync(config: &Config, prune: bool, verbose: bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
println!(
|
println!(
|
||||||
"Finished setting up {} plugins, skipped {} non-plugin '.dll' files.",
|
"Finished setting up {} plugins using {}, skipped {} non-plugin '.dll' files.",
|
||||||
num_installed, num_skipped_files
|
num_installed,
|
||||||
|
config.method.plural(),
|
||||||
|
num_skipped_files
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user