Vinícius Rodrigues Miguel
e9bc65a787
Add support for Zstd
2021-10-05 23:56:09 -03:00
João M. Bezerra
3f718b8335
Simplify tests by making gen_args more generic
2021-10-05 22:21:11 -03:00
João Marcos Bezerra
4ddc21a551
Merge pull request #61 from GabrielSimonetto/issue-48
...
Make the "decompress" command explicit
2021-10-05 22:10:27 -03:00
Gabriel Simonetto
788809b8f3
Make decompress command explicit
...
- No subcommand given now calls the help menu
- Also added docs for the short version of compress and decompress
2021-10-05 22:06:18 -03:00
Vinícius Rodrigues Miguel
e7dd6f2d4f
Don't use colors when stdout
or stderr
are being redirected
2021-10-05 21:12:15 -03:00
João M. Bezerra
f7139548f6
Switch from BTree to Hash collections
2021-10-05 18:10:28 -03:00
João M. Bezerra
2f5083278f
Add libc dependency
...
Cross compatible (with windows) exit failure code
2021-10-03 00:20:12 -03:00
João M. Bezerra
89d1e6a752
Document modules
2021-10-03 00:17:57 -03:00
Gabriel Simonetto
e352f8bc93
Allow empty dirs on tar
2021-10-02 17:33:16 -03:00
Gabriel Simonetto
0c65fbd2d4
Allow empty dirs on zip
2021-10-02 17:14:16 -03:00
Vinícius Rodrigues Miguel
df062f4155
zip: optimize UTF-8 checks on Unix, remove unneeded Clone
2021-10-01 19:13:43 -03:00
Vinícius Rodrigues Miguel
17d8959a0f
unix: if setting permission fails, return an error instead of panicking
2021-10-01 12:00:52 -03:00
Vinícius Rodrigues Miguel
8fc2f06ef7
error: remove unused error variants
2021-10-01 11:46:20 -03:00
Vinícius Rodrigues Miguel
6085807ddf
cd_into_same_dir_as
: allow the proper IO error to bubble up and add docs
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
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
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
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
Vinícius Rodrigues Miguel
a9673a3eba
Reuse Confirmation struct when checking for overwrite permission
2021-07-25 01:23:58 -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
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 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
João M. Bezerra
57a3d231eb
Turning oof
subcrate into a module
2021-05-26 21:54:50 -03:00
João M. Bezerra
f203b80eb8
Fixing ouch OofError convertion
2021-05-19 12:28:49 -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
2ba91644e8
commands: remove two unnecessary clones
2021-04-09 12:05:49 -03:00
Vinícius Miguel
3cb0bfa1e5
cli: refactor path canonicalizing logic
2021-04-09 02:05:31 -03:00
Vinícius Miguel
38e7009a27
cli: add an alias for the compress subcommand
2021-04-08 22:46:47 -03:00
Vinícius Miguel
b614533fd5
utils: fix usage of the -n, --no flag
2021-04-08 22:31:10 -03:00
Vinícius Miguel
c94b49f013
cli: Only suggest the typo correction and exit
2021-04-08 12:48:52 -03:00
Vinícius Miguel
5ca99c101e
oof: remove unnecessary closures (((and undo last commit)))
2021-04-08 03:03:07 -03:00