Skip to content

Commit

Permalink
Show method for individual files in jean ls --verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Jan 26, 2024
1 parent 295cb65 commit aa44aae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/jean/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ fn do_main(cli: Cli) -> Result<(), Box<dyn std::error::Error>> {
Commands::Ls { zipfile, verbose } => {
let zipfile = File::open(zipfile)?;
let reader = zipfile.read_zip()?;
info(&reader);

for entry in reader.entries() {
print!(
Expand All @@ -159,13 +160,12 @@ fn do_main(cli: Cli) -> Result<(), Box<dyn std::error::Error>> {
print!("\t{target}", target = target);
}

if let Some(comment) = entry.comment() {
print!("\t{comment}", comment = comment);
}
print!("\t{:?}", entry.method());
if entry.inner.is_zip64 {
print!("\tZip64");
} else {
print!("\tZip32");
}
if let Some(comment) = entry.comment() {
print!("\t{comment}", comment = comment);
}
}
println!();
Expand Down

0 comments on commit aa44aae

Please sign in to comment.