30 Commits

Author SHA1 Message Date
João M. Bezerra
ed0e225219 Improve error message for Zip invalid encoding errors
And refactor function implementations
2021-11-10 19:45:27 -03:00
João M. Bezerra
27b6970eda Updating rustfmt 2021-11-02 16:15:36 -03:00
João M. Bezerra
9a9488fcd2 Merge branch 'command_list' 2021-11-02 15:31:01 -03:00
Spyros Roum
7f5ff0faf1 Fix archives panicking when asked to overwrite file 2021-11-02 13:34:38 +02:00
Spyros Roum
8ef1b25b12 Ask to overwrite dirs when decompressing archives 2021-11-02 12:38:10 +02:00
Anton Hermann
9919c72347 Merge branch 'master' into command_list 2021-11-01 12:32:55 +01:00
Anton Hermann
e8f24b7178 list: highlight directories (either coloring them or adding a /) 2021-11-01 12:15:36 +01:00
Anton Hermann
30ebcf4f9e Implement command 'list' to show archive contents 2021-11-01 08:53:03 +01:00
João Marcos Bezerra
95d38e99f6 Merge branch 'master' into issue-32 2021-10-31 03:01:41 -03:00
figsoda
614f2aa6d5
Merge branch 'master' into completions-manpage 2021-10-30 16:59:24 -04:00
Gabriel Simonetto
704a4efdd7 Merge branch 'master' into issue-56 2021-10-30 11:31:09 -03:00
Gabriel Simonetto
09b050d836 Introduce fs_err as a replacement for fs 2021-10-30 11:17:38 -03:00
Gabriel Simonetto
0fdef287c4 Warn for missing docs, and add necessary docs 2021-10-27 00:08:00 -03:00
figsoda
d6054ba3ee move QuestionPolicy to lib 2021-10-21 19:13:29 -04:00
Anton Hermann
10f7462b8b Introduce new type for policy on how to handle questions 2021-10-21 23:31:53 +02:00
João Marcos Bezerra
e17eb9595e Merge branch 'master' into migrate-to-clap 2021-10-20 14:04:19 -03:00
TATSUNO Yasuhiro
4404b91a23
refactoring: Extract function (#116) 2021-10-20 01:10:10 -03:00
TATSUNO Yasuhiro
2e6cd893dc
Omit "./" at the start of the path (#109) 2021-10-19 12:57:11 -03:00
Spyros Roum
e24c9ce931 Replace oof with clap 2021-10-19 14:42:07 +03:00
Vinícius Miguel
14961bed65
Check if a folder is being compressed to a non-archive format (#79) 2021-10-07 17:09:33 -03:00
Vinícius Rodrigues Miguel
a739b5a482 Re-add "Compressing" output to Tar and make Tar and Zip compression use the info macro 2021-10-07 11:36:54 -03:00
Vinícius Rodrigues Miguel
d4862e2b6f test: check the resulting compressed files through MIME types 2021-10-06 23:54:20 -03:00
Gabriel Simonetto
0c65fbd2d4 Allow empty dirs on zip 2021-10-02 17:14:16 -03:00
Vinícius Rodrigues Miguel
df062f4155 zip: optimize UTF-8 checks on Unix, remove unneeded Clone 2021-10-01 19:13:43 -03:00
Vinícius Rodrigues Miguel
17d8959a0f unix: if setting permission fails, return an error instead of panicking 2021-10-01 12:00:52 -03:00
Vinícius Rodrigues Miguel
55aa65dcea Reduced repetition caused by [INFO] printing 2021-09-17 00:22:41 -03:00
Vinícius Rodrigues Miguel
eabaac0145 Run rustfmt 2021-09-16 21:35:18 -03:00
João M. Bezerra
c9d4eea403 Minor renaming 2021-08-13 02:14:28 -03:00
João M. Bezerra
bb93e46535 Reworked compression
Now works with multiple formats, like
archive.zip.gz.lz.gz.gz2.xz

Now with minimum in-memory copying, compressing and decompressing (with
exception to .zip, due to the format limitations) is all done directly
into the final destination file.
2021-08-03 21:18:22 -03:00
João M. Bezerra
ac4948abf7 Decompression: multiple formats, no extra copying
Rewrote decompression to use chained decoders, creating a stream and
avoiding in-memory decompression, which caused redundant copying.

Now ouch supports any number of extensions as decompressing formats, not
only two.
2021-08-03 16:58:21 -03:00