365 Commits

Author SHA1 Message Date
João M. Bezerra
df4f24469c Fix installation for Mac OS
Using a more appropriate installation location, /usr/local/bin

/usr/bin is protected in Mac OS by SIP (System Integrity Protection)
2021-09-26 22:59:02 -03:00
João M. Bezerra
fee510c32d Reordering imports 2021-09-26 16:23:24 -03:00
João Marcos Bezerra
c0fd6b5bfb
Update README table of supported formats
Leaving only the formats we support or currently plan on 
supporting, replacing `.7z` by `.zst`.
2021-09-25 22:52:53 +00:00
João M. Bezerra
b918cb912d Fix installation script + support wget 2021-09-25 04:50:41 +00:00
Vinícius Rodrigues Miguel
6085807ddf cd_into_same_dir_as: allow the proper IO error to bubble up and add docs 0.1.6 2021-09-17 11:54:55 -03:00
Vinícius Rodrigues Miguel
8565e475c3 Rework FinalError::display into a FinalError::Display impl 2021-09-17 11:49:46 -03:00
Vinícius Rodrigues Miguel
130288beb4 dialogs: use Cow<str> to avoid cloning a String 2021-09-17 09:33:19 -03:00
João M. Bezerra
3ea45e57d8 Update uploaded artifacts names 2021-09-17 04:16:33 -03:00
João Marcos Bezerra
afa6db6e93
Update README, add badges and fixes broken links 2021-09-17 03:31:18 -03:00
João Marcos Bezerra
06c69d4d8f
README update 2021-09-17 03:00:48 -03:00
Vinícius Rodrigues Miguel
a0f43b62f7 Release 0.1.6 2021-09-17 00:55:58 -03:00
Vinícius Rodrigues Miguel
b099e4ac20 Respect the NO_COLOR env. arg. 2021-09-17 00:55:38 -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
c4a4792816 Misc cleanup 2021-09-16 23:14:00 -03:00
Vinícius Rodrigues Miguel
eabaac0145 Run rustfmt 2021-09-16 21:35:18 -03:00
Vinícius Rodrigues Miguel
fabe7cba31 Remove unused dependency features, prefer libz-backed implementations 2021-09-16 20:17:52 -03:00
Vinícius Rodrigues Miguel
36dade8c11 Bump crate version, bump dependencies 2021-09-16 20:06:10 -03:00
João M. Bezerra
19aac4b578 Removing unstable features from rustfmt.toml 2021-08-24 17:00:43 -03:00
João M. Bezerra
1a67da03ed Giving better tests failure messages 2021-08-13 03:21:23 -03:00
João M. Bezerra
7265effd65 Replacing deprecated tempdir by tempfile crate 2021-08-13 03:12:23 -03:00
João M. Bezerra
c9d4eea403 Minor renaming 2021-08-13 02:14:28 -03:00
João M. Bezerra
8f7f812e87 Removing unused macros 2021-08-04 12:41:32 -03:00
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