Spyros Roum
c44cdf1013
Enable nightly for unstable fmt feature and run cargo fmt
2021-10-15 17:11:44 +03:00
Spyros Roum
702e7622db
Run cargo fmt
removing redundant braces
2021-10-15 14:49:05 +03:00
Spyros Roum
d852a5897c
Change FinalError builder pattern to take and give ownership of self
...
This means that when you do `let e = FinalError::with_title("Foo").detail("Blah");`, `e` will be of type `FinalError` instead of `&mut FinalError`, thus you don't have to call `clone()` on it
2021-10-15 14:20:49 +03:00
figsoda
161b8d0d66
refactor: better NO_COLOR support
2021-10-14 21:27:11 -04:00
figsoda
cd461fa5a5
apply clippy lints and small refactors ( #86 )
2021-10-14 16:22:48 -03:00
Vinícius Miguel
14961bed65
Check if a folder is being compressed to a non-archive format ( #79 )
2021-10-07 17:09:33 -03:00
Vinícius Rodrigues Miguel
b093277a85
Refactor FinalError::display_and_crash
into Error::Custom
2021-10-06 16:23:19 -03:00
Vinícius Rodrigues Miguel
40410840c9
error: add MissingArgumentsForDecompression
2021-10-06 15:55:13 -03:00
João M. Bezerra
89d1e6a752
Document modules
2021-10-03 00:17:57 -03:00
Vinícius Rodrigues Miguel
8fc2f06ef7
error: remove unused error variants
2021-10-01 11:46:20 -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
eabaac0145
Run rustfmt
2021-09-16 21:35:18 -03:00
João M. Bezerra
33382d06c3
Adding more checks before compression
2021-08-04 12:05:41 -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
bf8ef70d16
Fixing Oof and Walkdir Error Display
2021-05-28 04:34:06 -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
de28e573d8
Fix error message typo
2021-05-15 01:14:22 -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
2f6ac5e54c
error: Save std::io::Error as a crate::Error variant
2021-04-08 00:26:02 -03:00
Vinícius Miguel
faae7c088f
oof: add error variant MissingValueToFlag
2021-04-07 23:28:37 -03:00
Vinícius Miguel
0026e4d4de
Drop dependency on Colored
2021-04-07 02:02:50 -03:00
Vinícius Miguel
784217143a
Better error message for MissingArgumentsForDecompression
2021-04-06 19:05:36 -03:00
Vinícius Miguel
f9272b5ce5
evaluator: Verify if input files are decompressible
2021-04-06 04:30:36 -03:00
Vinícius Rodrigues Miguel
d2af261f67
Fix cargo test
tests
2021-04-05 01:14:27 -03:00
João M. Bezerra
28901ec44e
Binary size decreased by 35% (-400KB)
...
Huge refactor, removed totally `clap` to use our argparsing instead.
500+ modified.
2021-04-04 23:26:57 -03:00
João M. Bezerra
0c9131c307
Start replacing clap
with oof
2021-04-04 23:13:03 -03:00
Vinícius Rodrigues Miguel
b002de78d9
Show better error messages
2021-03-30 00:11:46 -03:00
Vinícius Rodrigues Miguel
2dc828c0ff
(WIP) Showing better error messages
2021-03-29 23:11:22 -03:00
Vinícius Rodrigues Miguel
7954eb07fd
decompressors/zip: Add confirmation dialog for file overwriting
2021-03-28 13:56:00 -03:00
Vinícius Rodrigues Miguel
91f411439a
rustfmt
2021-03-27 01:34:43 -03:00
Vinícius Rodrigues Miguel
234e0406a1
Don't allow ouch
to compress the root folder
2021-03-27 00:37:47 -03:00
Vinícius Rodrigues Miguel
19f12ff791
Ensure correct permissions for decompressed files from .zip on Unix
2021-03-26 22:39:23 -03:00
João M. Bezerra
ce26246fd4
Changing the error imports
2021-03-26 14:03:06 -03:00
Vinícius Rodrigues Miguel
965041310c
Make ouch support paths with dot-dot (..) for input files/directories
2021-03-25 03:20:20 -03:00
Vinícius Rodrigues Miguel
9ea18659e5
Update README, slightly reduce code repetition
2021-03-24 18:35:01 -03:00
Vinícius Rodrigues Miguel
729dda819e
Add support for Lzma decompression
2021-03-24 01:40:16 -03:00
Vinícius Rodrigues Miguel
f8ca0e3c56
Turns out LZMA decompression is not working
2021-03-23 23:17:48 -03:00
Vinícius Rodrigues Miguel
d72ca9eeae
Tar compression seemingly working
2021-03-23 03:10:25 -03:00
Vinícius Rodrigues Miguel
90ad9d8f8a
WIP decompression support for .xz, .bz, .lzma
2021-03-22 02:18:35 -03:00
Vinícius Rodrigues Miguel
e705024c61
decompressors.zip: now working
2021-03-21 19:11:27 -03:00
Vinícius Rodrigues Miguel
b6d4e50cca
Early progress in supporting .tar files
2021-03-21 04:09:28 -03:00
Vinícius Rodrigues Miguel
73398c2d50
tests: Add tests for extension extraction
2021-03-19 15:18:32 -03:00
Vinícius Rodrigues Miguel
e04aba8d53
cli: More tests
2021-03-19 13:20:22 -03:00
Vinícius Rodrigues Miguel
a47f41a257
typo: Decompressable -> Decompressible
2021-03-19 11:40:17 -03:00
Vinícius Rodrigues Miguel
08489b028c
First commit
2021-03-19 04:40:19 -03:00