mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-15 04:50:43 +02:00
Update yabridgectl documentation
This commit is contained in:
@@ -47,7 +47,7 @@ pub fn remove_directory(config: &mut Config, path: &Path) -> Result<()> {
|
||||
let orphan_files = files::index_so_files(path);
|
||||
if !orphan_files.is_empty() {
|
||||
println!(
|
||||
"Warning: Found {} leftover '.so' files still in this directory:",
|
||||
"Warning: Found {} leftover .so files still in this directory:",
|
||||
orphan_files.len()
|
||||
);
|
||||
|
||||
@@ -221,10 +221,10 @@ pub fn do_sync(config: &Config, prune: bool, verbose: bool) -> Result<()> {
|
||||
// tries to load them
|
||||
if !orphan_so_files.is_empty() {
|
||||
if prune {
|
||||
println!("Removing {} leftover '.so' files:", orphan_so_files.len());
|
||||
println!("Removing {} leftover .so files:", orphan_so_files.len());
|
||||
} else {
|
||||
println!(
|
||||
"Found {} leftover '.so' files, rerun with the '--prune' option to remove them:",
|
||||
"Found {} leftover .so files, rerun with the '--prune' option to remove them:",
|
||||
orphan_so_files.len()
|
||||
);
|
||||
}
|
||||
@@ -243,7 +243,7 @@ pub fn do_sync(config: &Config, prune: bool, verbose: bool) -> Result<()> {
|
||||
}
|
||||
|
||||
println!(
|
||||
"Finished setting up {} plugins using {}, skipped {} non-plugin '.dll' files",
|
||||
"Finished setting up {} plugins using {}, skipped {} non-plugin .dll files",
|
||||
num_installed,
|
||||
config.method.plural_name(),
|
||||
num_skipped_files
|
||||
|
||||
@@ -164,7 +164,7 @@ fn find_files(directory: &Path) -> (Vec<PathBuf>, Vec<FoundFile>) {
|
||||
.follow_links(true)
|
||||
.into_iter()
|
||||
.filter_map(|e| e.ok())
|
||||
.filter(|x| !x.file_type().is_dir())
|
||||
.filter(|e| !e.file_type().is_dir())
|
||||
.enumerate()
|
||||
{
|
||||
// This is a bit of an odd warning, but I can see it happening that someone adds their
|
||||
|
||||
@@ -26,8 +26,6 @@ mod config;
|
||||
mod files;
|
||||
mod utils;
|
||||
|
||||
// TODO: Reward parts of the readme
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let mut config = Config::read()?;
|
||||
|
||||
@@ -106,7 +104,7 @@ fn main() -> Result<()> {
|
||||
Arg::with_name("prune")
|
||||
.short('p')
|
||||
.long("prune")
|
||||
.about("Remove unrelated or leftover '.so' files"),
|
||||
.about("Remove unrelated or leftover .so files"),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("verbose")
|
||||
|
||||
Reference in New Issue
Block a user