88 Commits

Author SHA1 Message Date
Nbiba Bedis
85968ea841 Simplify decompress function 2021-11-14 17:59:40 +01:00
Spyros Roum
c33d896743 Change clear_path to return Result<bool>
So `Ok(true)` means the path is clear while `Ok(false)` means the user doesn't want to overwrite
2021-11-11 15:58:51 +02:00
Spyros Roum
d1d781dded Clear path before creating a dir 2021-11-11 11:36:40 +02:00
João M. Bezerra
162e1c1259 Fix error message panic when cannot list non-archive files 2021-11-10 20:24:57 -03:00
João M. Bezerra
d27e259b26 Reorganizing src/utils, by renaming submodules
And moving formatting stuff out of fs.rs
2021-11-10 09:51:26 -03:00
João Marcos Bezerra
1579a482e8
Fix typo
DeMorgan's laws apply to disjunctions, not implications.
2021-11-10 09:06:09 -03:00
João Marcos Bezerra
1026fa19fd
Merge pull request #154 from sigmaSd/infer
Infer file extension when decompressing
2021-11-10 06:40:54 -03:00
João M. Bezerra
552096acf0 Minor import and module exporting changes 2021-11-10 06:03:46 -03:00
Nbiba Bedis
266cf6e27a Infer file extension when decompressing 2021-11-10 05:41:44 -03:00
figsoda
dedd254ace switch from lz4_flex to lzzzz, enable lz4 tests 2021-11-09 21:26:04 -05:00
João Marcos Bezerra
abf1d4e3e4
Readme update (#161)
* Updating badges

* Reformatted support table to be monospaced

* Add first benchmark to the readme

And fixed a typo

* Some readme rewording

* Removing readme redundant compression example

* Change badges to have squared corners

* readme: increase headers size by one

* Slight modifications to the README

* Specify dependencies and tweak some other stuff

* Add MSRV

Co-authored-by: Vinícius Miguel <36349314+vrmiguel@users.noreply.github.com>
2021-11-06 01:29:56 -04:00
João Marcos Bezerra
d1988b4ba2
Remove import comments 2021-11-04 01:08:09 -03:00
Vinícius Rodrigues Miguel
a798d20106 extension: Use hardcoded slices instead of Vecs when creating an Extension 2021-11-03 12:35:29 -03:00
figsoda
27d8e64192 minor improvements 2021-11-02 17:37:24 -04:00
figsoda
296826b4d3 add support for lz4 format 2021-11-02 17:37:24 -04:00
João M. Bezerra
9a9488fcd2 Merge branch 'command_list' 2021-11-02 15:31:01 -03:00
João Marcos Bezerra
73c1d9a41c
Merge pull request #141 from SpyrosRoum/fix-decompression-overwritting-files-without-asking
Fix decompression overwritting files without asking and failing on directories
2021-11-02 08:58:31 -03:00
Spyros Roum
547b8c91e5 Extract function 2021-11-02 13:34:04 +02:00
João M. Bezerra
5c0f24f567 Change alignment of error message replacement suggestion 2021-11-02 06:30:59 -03:00
João M. Bezerra
21134aaeff Improve message when no extensions given to compress file 2021-11-02 06:28:55 -03:00
João M. Bezerra
fadc412896 Improve error message when no extensions given to decompress
Fixes #137
2021-11-02 06:13:24 -03:00
Spyros Roum
70c81ed8a4 Fix non-archives overwriting files without asking and error-ing on dirs 2021-11-02 10:58:58 +02:00
João M. Bezerra
6cebf78da6 Simplify Error::Custom code conversions 2021-11-02 05:18:34 -03:00
João M. Bezerra
d2d4a929e1 Docs improvements
+ Removed some dead code
2021-11-02 04:57:26 -03:00
João Marcos Bezerra
75cad36c5c
Merge branch 'master' into Remove-tar-combinations-from-CompressionFormat 2021-11-02 01:00:18 -03:00
Anton Hermann
8527616729 FIX 9919c72: add doc comment, remove accidentally doubled is_archive() 2021-11-01 12:40:30 +01:00
Anton Hermann
9919c72347 Merge branch 'master' into command_list 2021-11-01 12:32:55 +01:00
Anton Hermann
5421a5db77 Implement tree output for 'list' command 2021-11-01 08:53:18 +01:00
Anton Hermann
30ebcf4f9e Implement command 'list' to show archive contents 2021-11-01 08:53:03 +01:00
Spyros Roum
4921d3d3d2 Add Extension wrapper that lets us keep tgz instead of forcing tar.gz 2021-11-01 01:09:37 +02:00
João Marcos Bezerra
95d38e99f6 Merge branch 'master' into issue-32 2021-10-31 03:01:41 -03:00
João Marcos Bezerra
9b7b863e94
Merge branch 'master' into master 2021-10-31 02:41:43 -03:00
João M. Bezerra
a85eb68a60 Merge branch 'pr/completions-manpage' 2021-10-31 02:23:21 -03:00
João M. Bezerra
77873cde15 Merge branch 'pr/fix-archive-format-detection' 2021-10-31 01:59:41 -03:00
João M. Bezerra
4e731f8af3 Merge branch 'dir-flag' 2021-10-31 01:49:33 -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
Santo Cariotti
09c2830190 feat: print number of unpacked files 2021-10-29 19:21:17 +02:00
Santo Cariotti
2d84686b25 feat: write only one time the info on stdout 2021-10-29 19:14:16 +02:00
Gabriel Simonetto
0fdef287c4 Warn for missing docs, and add necessary docs 2021-10-27 00:08:00 -03:00
Spyros Roum
02657ee5bc Remove the variants from CompressionFormat 2021-10-22 14:46:54 +03:00
figsoda
d6054ba3ee move QuestionPolicy to lib 2021-10-21 19:13:29 -04:00
Spyros Roum
91a1054c3c Remove duplicated if/else branches 2021-10-22 02:05:38 +03:00
Spyros Roum
0f3bc4f444 Use the new method were applicable 2021-10-22 02:04:55 +03:00
figsoda
2816b837e2
Merge branch 'master' into completions-manpage 2021-10-21 18:57:24 -04:00
Anton Hermann
10f7462b8b Introduce new type for policy on how to handle questions 2021-10-21 23:31:53 +02:00
figsoda
7efac2e55d generate completions 2021-10-20 22:18:39 -04:00
João Marcos Bezerra
e17eb9595e Merge branch 'master' into migrate-to-clap 2021-10-20 14:04:19 -03:00
TATSUNO Yasuhiro
5f7d777342
Change display of current directory (#119) 2021-10-20 00:57:11 -03:00