example listing
This commit is contained in:
parent
eaf79f46ed
commit
6acf62ca68
10
examples/list.rs
Normal file
10
examples/list.rs
Normal file
@ -0,0 +1,10 @@
|
||||
extern crate apt_pkg_native;
|
||||
|
||||
use apt_pkg_native::Cache;
|
||||
|
||||
fn main() {
|
||||
let mut cache = Cache::get_singleton();
|
||||
for item in cache.iter().map(|item| item.pretty_print()) {
|
||||
println!("{}", item);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user