You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
amethyst/src/search.rs

8 lines
241 B
Rust

use std::ops::Deref;
pub fn search(pkg: &str) {
let results = raur::search(&pkg);
for res in &results {
println!("{} {}\n {}", res[0].name, res[0].version, res[0].description.as_ref().map_or("n/a", String::deref));
}
}