more prep code

i18n
michal 2 years ago
parent 4383066b9e
commit 284a0bd21c

@ -71,6 +71,12 @@ fn main() {
if let true = matches.is_present("install") {
let sorted = sort(&packages, verbosity);
operations::install(sorted.repo, verbosity);
operations::aur_install(sorted.aur, verbosity);
eprintln!(
"Couldn't find packages: {} in repos or the AUR.",
sorted.nf.join(", ")
)
}
}

@ -0,0 +1,15 @@
pub fn aur_install(a: Vec<String>, verbosity: i32) {
match verbosity {
0 => {}
1 => {
eprintln!("Installing from AUR:");
eprintln!("{:?}", &a);
}
_ => {
eprintln!("Installing from AUR:");
for b in a {
eprintln!("{:?}", b);
}
}
}
}

@ -1,7 +1,12 @@
mod aur_install;
mod install;
mod uninstall;
mod query;
mod uninstall;
pub fn install(a: Vec<String>, verbosity: i32) {
install::install(a, verbosity);
}
}
pub fn aur_install(a: Vec<String>, verbosity: i32) {
aur_install::aur_install(a, verbosity);
}

Loading…
Cancel
Save