387 Commits

Author SHA1 Message Date
João M. Bezerra
a29ff3c637 fix error message when compressing zip archive 2022-10-15 22:22:52 -03:00
João M. Bezerra
cdd1b530be fix not overwriting a folder when compressing 2022-10-15 21:36:24 -03:00
figsoda
afdbf178ed fix infinite compression if output file is inside the input folder 2022-10-13 21:05:15 -04:00
João M. Bezerra
3d29e17060 remove automatic detection for partial compression 2022-10-13 18:53:29 -03:00
figsoda
889f1d9c35 fix typo 2022-10-13 11:51:48 -04:00
figsoda
d4766c4bf3
Merge branch 'main' into rewrite-progress 2022-10-13 11:37:09 -04:00
figsoda
51855948f1 add OutputLine trait for performance improvements 2022-10-13 11:31:43 -04:00
figsoda
dd6ab2aa6e rename out to log_out 2022-10-13 10:27:04 -04:00
figsoda
2f4404e658 use humansize instead of Bytes 2022-10-12 22:33:41 -04:00
figsoda
8b0f4f3ee4 rewrite progress module 2022-10-12 20:49:33 -04:00
figsoda
09d390608f set last modified time during zip compression 2022-10-11 22:01:13 -04:00
João M. Bezerra
a2c91c4248 minor tweaks 2022-10-11 22:09:39 -03:00
João M. Bezerra
71893aafeb Refactor the way we set last modified times
Last modified time is a piece of metadata that is available when
decompressing an archive
2022-10-11 22:09:39 -03:00
João Marcos Bezerra
e12c25e833
Merge pull request #277 from ouch-org/wann-file-extension-passed-as-file-name
Warn user if file extension is passed as file name
2022-10-11 21:19:02 -03:00
João M. Bezerra
f554e3c5f0 warn user if file extension is passed as file name
example: .tar.gz is a file named .tar with extension .gz

this can be confusing because people might expect .tar.gz to be a
.tar.gz archive, but it's currently not
2022-10-11 20:57:55 -03:00
João Marcos Bezerra
cd21ee99b8
Merge pull request #276 from figsoda/update-deps
bump dependencies
2022-10-11 17:41:45 -03:00
figsoda
dfb3a367e4 bump dependencies 2022-10-11 16:27:27 -04:00
João M. Bezerra
22697737cd show aliases on --help 2022-10-11 17:19:08 -03:00
figsoda
5dc8d3efed fix: apply clippy lints 2022-10-03 20:56:48 -04:00
figsoda
5d27a0cd0b feat: generate man pages with clap_mangen 2022-10-03 20:56:48 -04:00
João Marcos Bezerra
398a619018
Merge pull request #271 from figsoda/zip-permissions
fix: respect file permissions when compressing zip files
2022-09-16 18:46:57 -03:00
figsoda
0519b5663e fix: respect file permissions when compressing zip files 2022-09-01 16:17:29 -04:00
figsoda
1f8cbdd360 fix: incorrect warnings for decompression 2022-09-01 14:27:12 -04:00
Vinícius Miguel
99ec7d2cf2
Fix wrong filename suggestions when compressing folders into non-archives (#269) 2022-08-22 23:37:04 -03:00
figsoda
996e597c1f fix: apply clippy lint 2022-08-14 12:32:54 +08:00
figsoda
a1c943923c refac: simplify smart_unpack to remove redundant code and make clippy happy 2022-08-14 12:24:41 +08:00
João M. Bezerra
86234084ab refac: use Lazy cell to optimize env::current_dir call 2022-08-12 13:03:48 -03:00
Dan Martinez
39ea378cc5 Fix the decompress -d argument description 2022-08-11 14:29:23 -07:00
João M. Bezerra
7ed3a16f21 chore: update rustfmt config
remove 'force_multiline_blocks' config
2022-07-04 11:06:16 -03:00
João M. Bezerra
2e165e57cb fix rustdoc lint warnings 2022-06-05 12:52:20 -03:00
João M. Bezerra
801189ec02 create is_running_in_accessible_mode helper
also renamed some variables
2022-06-04 21:38:16 -03:00
João M. Bezerra
278bc980c1 small changes and rewrite zip warning message 2022-06-04 14:36:57 -03:00
João M. Bezerra
97c4387fcf minor simplifications and renamings 2022-06-04 14:04:31 -03:00
João M. Bezerra
14025c6816 remove use_small_heuristics = "Max" from rustfmt
and update edition to 2021
2022-06-04 13:06:52 -03:00
João M. Bezerra
f5fcf7f2a3 replace flat_map by flatten_compression_formats 2022-06-04 13:01:24 -03:00
João M. Bezerra
19769223c8 create helper function split_first_extension 2022-06-04 12:55:51 -03:00
João M. Bezerra
4d518b7056 small refactor and renamings 2022-06-04 12:47:17 -03:00
João M. Bezerra
8bd78f49cd fix accessible warning if reversed 2022-06-04 11:46:59 -03:00
João M. Bezerra
c65959d648 break down commands.rs into multiple files 2022-06-04 11:46:23 -03:00
João M. Bezerra
eac0a0687a fix clippy warnings 2022-06-04 10:59:51 -03:00
Artturin
2b53db9bdd fix clippy warning
https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
2022-06-01 17:40:57 +03:00
João Marcos Bezerra
45a456f127
Merge branch 'master' into fix-zip-warning 2022-03-02 20:32:45 -03:00
Jan Christian Grünhage
abca371dcc fix: remove single quotes from clap doc comments
Apparently, clap_complete doesn't properly escape single quotes in doc
comments, leading to broken shell completions for zsh. To circumvent
this, I've removed the single quote in the one place where it shouldn't
have been in the first place ("it's" vs "its", contraction vs possessive
pronoun), and replaced "it's" with "it is" in the other place.

Reference to upstream issue: https://github.com/clap-rs/clap/issues/1596
2022-02-13 10:36:06 +01:00
Vinícius R. Miguel
7dd016aa54 feat: recover last modified time when unpacking zip archives 2022-02-05 23:08:21 -03:00
Vinícius Miguel
8b1cd18fb5
feat: don't allocate when possible in to_utf, nice_directory_display (#249) 2022-02-05 12:31:20 -03:00
João M. Bezerra
26138e0f06 Reuse zip warning message 2022-02-03 18:00:02 -03:00
João Marcos Bezerra
1a1449a569
Merge branch 'master' into fix-zip-warning 2022-02-03 16:12:14 -03:00
João M. Bezerra
923a0601eb Update compress_files docs 2022-02-03 16:02:48 -03:00
Vinícius Miguel
336fc97831
feat: allow ignoring hidden files and files matched by .gitignore files (#245) 2022-01-16 23:30:26 -03:00
João Marcos Bezerra
7a7c6b64fb
Merge pull request #240 from Crypto-Spartan/update-clap-3.0.4
Update clap to v3.0.4
2022-01-16 22:44:20 -03:00