64 Commits

Author SHA1 Message Date
figsoda
1fb9ef5abc remove trailing blank lines in error messages 2021-11-10 21:56:04 -05:00
figsoda
dedd254ace switch from lz4_flex to lzzzz, enable lz4 tests 2021-11-09 21:26:04 -05: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
2fcec33ec6 Removing obsolete error variants 2021-11-02 07:36:17 -03:00
João M. Bezerra
047102ec07 Remove InternalError, replaced by unreachable! macro 2021-11-02 06:28:40 -03:00
João M. Bezerra
6cebf78da6 Simplify Error::Custom code conversions 2021-11-02 05:18:34 -03:00
João M. Bezerra
d2d4a929e1 Docs improvements
+ Removed some dead code
2021-11-02 04:57:26 -03:00
João Marcos Bezerra
95d38e99f6 Merge branch 'master' into issue-32 2021-10-31 03:01:41 -03:00
João M. Bezerra
4e731f8af3 Merge branch 'dir-flag' 2021-10-31 01:49:33 -03:00
Gabriel Simonetto
704a4efdd7 Merge branch 'master' into issue-56 2021-10-30 11:31:09 -03:00
João M. Bezerra
d1c905cda4 Improving permission denied error message 2021-10-30 11:17:38 -03:00
João M. Bezerra
6c6f721f35 Solved FinalError compile errors 2021-10-30 11:17:38 -03:00
Gabriel Simonetto
70b787b58e Fix repo link on documentation 2021-10-27 00:08:26 -03:00
Gabriel Simonetto
0fdef287c4 Warn for missing docs, and add necessary docs 2021-10-27 00:08:00 -03:00
Spyros Roum
e24c9ce931 Replace oof with clap 2021-10-19 14:42:07 +03:00
João Marcos Bezerra
d33dd7f445
Merge branch 'master' into Improve-FinalError 2021-10-15 11:23:25 -03:00
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