Closed egibs closed 4 months ago
Looks great! My only feedback is to see if we add this feature without introducing more flags for people to learn.
@vaikas -- addressed your comments; appreciate the feedback!
This improvemenrt is huge! Nice work, @egibs !
This PR adds support for archives -- specifically
.apk
,.jar
,.tar
,.tgz
,.tar.gz
,.tar.xz
, and.zip
archives..apk
and.tar.*
files will use atar
-specific function and.jar
and.zip
files use azip
-specific function.This behaves similarly to the code introduced in #124 where the archive is copied to a temporary directory and extracted before being scanned. I moved the
extract
code toarchive.go
and updated it to support.tar.gz
,.tar.xz
(via thexz
package), and.apk
files.I tested this out with all of the newly-supported file types and
make lint
runs cleanly with these changes.Examples are attached here: examples.md