repak/examples/subcommands/list.rs

7 lines
178 B
Rust
Raw Normal View History

2023-01-17 05:27:36 +00:00
pub fn list(path: String, key: Option<String>) -> Result<(), unpak::Error> {
2023-01-14 18:32:06 +00:00
for file in super::load_pak(path, key)?.files() {
println!("{file}");
}
Ok(())
}