1393 Commits

Author SHA1 Message Date
João M. Bezerra
44e0fcc985 Fixing tests without assert 2021-08-04 12:05:47 -03:00
João M. Bezerra
33382d06c3 Adding more checks before compression 2021-08-04 12:05:41 -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
b969bda5a8 Added check for missing formats when decompressing 2021-08-03 19:12: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
João M. Bezerra
abc6f51582 Removing .*.tar and .*.zip from tests
Those formats won't be supporte by now, at least for compressing.

Archive formats are are only meant to be used as the first extension,
because archives are meant to be used with multiple files.
2021-08-02 15:46:29 -03:00
Vinícius Miguel
7b7b6dde58
Merge pull request #46 from psibi/nix-package
Add Cargo lock file
2021-07-26 18:04:09 +00:00
Sibi Prabakaran
194053e01a
Add Cargo lock file 2021-07-26 08:05:17 +05:30
Sibi Prabakaran
54c68236c4
Remove cargo.lock from gitignore rules 2021-07-26 07:58:03 +05:30
Vinícius Miguel
04b02648c8
Merge pull request #43 from vrmiguel/more-ci-targets
Actions: new targets: Linux ARM64 (glibc), x86-64 (musl), Windows (MinGW)
2021-07-25 05:55:45 +00:00
Vinícius Rodrigues Miguel
ec24bd90ab Actions: new targets: Linux ARM64 (glibc), x86-64 (musl), Windows (MinGW) 2021-07-25 02:50:59 -03:00
João Marcos Bezerra
2746f42db9
Merge pull request #42 from vrmiguel/const-confirmation
Reuse Confirmation struct when checking for overwrite permission
2021-07-25 01:29:40 -03:00
Vinícius Rodrigues Miguel
a9673a3eba Reuse Confirmation struct when checking for overwrite permission 2021-07-25 01:23:58 -03:00
João Marcos Bezerra
58c73932ef
Merge pull request #38 from fabricio7p/test/oof-cli
Testing oof argparsing usage in src/cli.rs
2021-06-12 01:46:53 -03:00
Fabricio Dematte
dd6718bd3b chore: remove comments 2021-06-10 13:01:45 -03:00
João M. Bezerra
8eb973d470 Fixing --output flag missing in tests 2021-06-02 03:31:30 -03:00
Fabricio Dematte
38c88c1df2 more ouch cli testing 2021-05-31 08:22:10 -03:00
Fabricio Dematte
09e9036301 attempt to assert 2021-05-31 08:00:03 -03:00
João M. Bezerra
f952392c34 Updating install.sh 2021-05-30 23:38:32 -03:00
Vinícius Miguel
62a4fe695d
Merge pull request #39 from vrmiguel/error-treatment-display-struct
Adding FinalError, using in crate::Error Display
2021-05-28 19:56:11 -03:00
João M. Bezerra
51a88bebba Adding FinalError, using in crate::Error Display
Helps us add nice and consistently formatted error messages
2021-05-28 16:53:18 -03:00
João M. Bezerra
8707328944 Temporarly disabling platform-dependent test 2021-05-28 05:14:51 -03:00
João Marcos Bezerra
ce9118a2dc
Update README.md 2021-05-28 05:05:59 -03:00
João M. Bezerra
bf8ef70d16 Fixing Oof and Walkdir Error Display 2021-05-28 04:34:06 -03:00
João M. Bezerra
d1734b54cb Eliding some lifetimes 2021-05-28 03:14:03 -03:00
João M. Bezerra
f51a5c8727 Moving cli input .canonicalize to help testing
We are moving canonicalize_files step
    from parse_args_from
    to parse_args

This helps testing our CLI without panicking when files don't exist
2021-05-28 03:07:25 -03:00
João M. Bezerra
cd43f215ea Replace io::Error by reason: String - crate::Error
By removing io::Error from crate::Error, we can implement PartialEq in
the enum to make testing easier.
2021-05-28 02:15:12 -03:00
Vinícius Rodrigues Miguel
77cfb48056 Release 0.1.5 0.1.5 2021-05-26 22:05:15 -03:00
João M. Bezerra
57a3d231eb Turning oof subcrate into a module 2021-05-26 21:54:50 -03:00
João M. Bezerra
5a2028b117 Simplify oof testing asserts 2021-05-26 12:58:52 -03:00
João Marcos Bezerra
22f13552f7
Updating installation instructions
And minor markdown details.
2021-05-26 02:54:50 -03:00
João M. Bezerra
045e1d911c Added installation script
Fixes #37
2021-05-26 02:48:14 -03:00
João Marcos Bezerra
fee56aab8c
Merge pull request #27 from fabricio7p/test/oof
Add further testing to oof argparsing on success and failure;
2021-05-24 12:11:06 -03:00
Fabricio Dematte
1059ba03ec test every OofError variant done 2021-05-23 22:07:31 -03:00
Fabricio Dematte
67bd239acb fix test asserts to properly match error variants. add misplaced flag test 2021-05-21 08:06:17 -03:00
Fabricio Dematte
c057d9c682 add further flag testing to oof crate 2021-05-19 21:35:50 -03:00
João M. Bezerra
f203b80eb8 Fixing ouch OofError convertion 2021-05-19 12:28:49 -03:00
João M. Bezerra
5e7ee4f959 Removing lifetime from OofError 2021-05-19 12:18:05 -03:00
Fabricio Dematte
dbb329344a add pre test setup function 2021-05-18 20:53:35 -03:00
Fabricio Dematte
1e11a99991 Add unknown short flag test 2021-05-17 21:56:22 -03:00
Vinícius Miguel
afbda444ef
Merge pull request #24 from vrmiguel/testing-compression
Testing compression and decompression of formats that support multiple files
2021-05-17 15:02:36 -03:00
João M. Bezerra
f4e1798cc7 Improving tests performance 2021-05-17 14:42:19 -03:00
João M. Bezerra
a4ca0a6621 Adding tests for compression and decompression 2021-05-17 14:41:29 -03:00
João M. Bezerra
2e66cec474 Adding testing dependencies
rand: to create random files
tempdir: create temporary test directories
2021-05-17 14:41:18 -03:00
João M. Bezerra
d01947d9e1 Adding rustfmt.toml and reformatting 2021-05-16 17:52:29 -03:00
João M. Bezerra
3dc9a78539 Removing src/test.rs 2021-05-15 01:15:19 -03:00
João M. Bezerra
de28e573d8 Fix error message typo 2021-05-15 01:14:22 -03:00
João M. Bezerra
864fc1a29b decompression: panic if there are no arguments 2021-05-15 01:12:03 -03:00
Vinícius Miguel
8548f73870
Update README.md 2021-04-10 12:01:04 -03:00
Vinícius Miguel
b50f82a65b
Merge pull request #22 from vrmiguel/dev
Fix the -n, --no flag usage and add an alias for the compress subcommand
2021-04-09 12:58:26 -03:00