411 Commits

Author SHA1 Message Date
João M. Bezerra
c4599fa1e6 readme: Remove MRSV incorrect advice 2021-11-10 07:22:11 -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
cbc87866fa Fix zip magic numbers detection
And reworked detection for other formats as well
2021-11-10 06:34:05 -03:00
João M. Bezerra
16acb98b6e Early return when can't detect extension from magic numbers 2021-11-10 06:04:31 -03:00
João M. Bezerra
552096acf0 Minor import and module exporting changes 2021-11-10 06:03:46 -03:00
João M. Bezerra
2d2a018cbe Update LICENSE
Adding copyright notice from "infer" crate
2021-11-10 05:46:56 -03:00
Nbiba Bedis
266cf6e27a Infer file extension when decompressing 2021-11-10 05:41:44 -03:00
João Marcos Bezerra
85a44c0835
Merge pull request #173 from figsoda/lzzzz
switch from lz4_flex to lzzzz, enable lz4 tests
2021-11-09 23:35:53 -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
3a5f43a76e
Merge pull request #163 from figsoda/tests
Rewrite tests
2021-11-09 21:22:53 -03:00
figsoda
c4a71d85ed add information about tests to CONTRIBUTING.md 2021-11-07 12:18:56 -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
Vinícius Miguel
43fb274956
Optimize strip_cur_dir (#167) 2021-11-05 23:49:35 -04:00
figsoda
2b9023e180 misc comments and wording changes 2021-11-05 23:27:20 -04:00
figsoda
253cedcf60 crate dir-diff -> fn assert_same_directory 2021-11-05 23:27:20 -04:00
figsoda
35df50857d rewrite tests 2021-11-05 23:27:20 -04:00
Vinícius Miguel
739a52f00e
Refactor utils into a module (#166) 2021-11-05 22:04:00 -04:00
João Marcos Bezerra
5a53e5725e
Merge pull request #162 from ouch-org/comments-cleanup
Remove import comments
2021-11-04 02:40:40 -03:00
João Marcos Bezerra
d1988b4ba2
Remove import comments 2021-11-04 01:08:09 -03:00
João Marcos Bezerra
e1378b3ac6
Merge pull request #156 from ouch-org/cur-dir-cow
Avoid allocating in `nice_directory_display` when possible, make `Extension` non-exhaustive
2021-11-03 18:40:23 -03:00
Vinícius Rodrigues Miguel
e81fafc3d3 Make Extension non-exhaustive 2021-11-03 18:08:39 -03:00
Vinícius Rodrigues Miguel
75ece05dbf Avoid allocating in nice_directory_display when possible 2021-11-03 18:08:22 -03:00
João Marcos Bezerra
2af0464ed3
Merge pull request #153 from figsoda/typo
Fix zsh shell completions
2021-11-03 13:15:40 -03:00
João Marcos Bezerra
54b57879ce
Merge pull request #155 from ouch-org/extension-heap-alloc
extension: Use hardcoded slices instead of `Vecs` when creating an `Extension`
2021-11-03 12:47:12 -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
cd84161b28 fix typo 2021-11-02 18:51:33 -04:00
João Marcos Bezerra
a1c4f0373f
Merge pull request #150 from figsoda/lz4
Add support for lz4
2021-11-02 18:45:53 -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 Marcos Bezerra
8b1927f890
Merge pull request #149 from ouch-org/fix-decompress-short-dir-flag
Fix short flag for the --dir flag
2021-11-02 18:30:17 -03:00
João M. Bezerra
75142f14b9 Fix short flag for the --dir flag 2021-11-02 18:27:46 -03:00
João Marcos Bezerra
04c8438ca2
Merge pull request #147 from ouch-org/fix-error-treatment-calling-todo
Perform exhaustive matching on error variants
2021-11-02 18:05:31 -03:00
João M. Bezerra
5059f9c875 Perform exhaustive matching on error variants
Fixes #29
2021-11-02 17:44:13 -03:00
João M. Bezerra
036afe668b Bumping version to 0.3.1 2021-11-02 17:27:02 -03:00
João Marcos Bezerra
486e0da82a
Merge pull request #146 from ouch-org/release-helper
Add release-helper.sh to make github releases easier
2021-11-02 17:19:06 -03:00
João M. Bezerra
a0f6aa490f Add release-helper.sh to make github releases easier 2021-11-02 17:17:11 -03:00
João Marcos Bezerra
41a9734d3a
Merge pull request #144 from ouch-org/updating-rustfmt
Updating rustfmt configurations
2021-11-02 16:30:11 -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
João Marcos Bezerra
cd77b987ac
readme: refer to list command for the next release 2021-11-02 11:26:16 -03:00
João M. Bezerra
000ce62eb3 Updating Cargo.lock 2021-11-02 10:53:06 -03:00
João M. Bezerra
800cf8d39f Bump version 0.3.0 2021-11-02 10:49:56 -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
7f5ff0faf1 Fix archives panicking when asked to overwrite file 2021-11-02 13:34:38 +02:00
Spyros Roum
547b8c91e5 Extract function 2021-11-02 13:34:04 +02:00
João Marcos Bezerra
e4e1d6a565
Merge pull request #140 from ouch-org/improving-error-treatment
Improving error messages and removing dead error treatment code
2021-11-02 07:41:19 -03:00
Spyros Roum
8ef1b25b12 Ask to overwrite dirs when decompressing archives 2021-11-02 12:38:10 +02:00
João M. Bezerra
2fcec33ec6 Removing obsolete error variants 2021-11-02 07:36:17 -03:00
João Marcos Bezerra
1b123a4dc2
Merge pull request #139 from ouch-org/simplify-cli-canonicalize-input-treatment
Simplify cli canonicalize implementation
2021-11-02 07:24:59 -03:00
João Marcos Bezerra
df3bb3b72b
Simplify cli canonicalize implementation 2021-11-02 07:21:03 -03:00