365 Commits

Author SHA1 Message Date
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
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
dedf7c0eca
Merge pull request #21 from vrmiguel/dev
Add checking for typos on the compression subcommand and switch panics to errors
2021-04-08 12:50: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
5ca99c101e oof: remove unnecessary closures (((and undo last commit))) 2021-04-08 03:03:07 -03:00
Vinícius Miguel
e7eb55a4cf test: make_dummy_files: return an error instead of panicking 2021-04-08 02:55:34 -03:00
Vinícius Miguel
908f8e4e93 oof: Add variant UnknownLongFlag and remove missing panics 2021-04-08 00:38:24 -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
613074dff1 oof: add error variant DuplicatedFlag 2021-04-07 23:36:58 -03:00
Vinícius Miguel
faae7c088f oof: add error variant MissingValueToFlag 2021-04-07 23:28:37 -03:00
Vinícius Miguel
5cca3c42e4 oof: impl fmt::Display for Flag 2021-04-07 23:12:30 -03:00
Vinícius Miguel
c08eb91632 oof: add some error variants to replace panics 2021-04-07 21:59:23 -03:00
Vinícius Miguel
d9b39706e2 Drop dependency on Termion 2021-04-07 02:23:50 -03:00
Vinícius Miguel
0026e4d4de Drop dependency on Colored 2021-04-07 02:02:50 -03:00
Vinícius Miguel
8a4ac5d6d1 cli: Check for typos on ouch compress 2021-04-07 00:26:53 -03:00
João M. Bezerra
e1c72a6a6b Removing unused cli::CommandInfo 2021-04-06 23:36:44 -03:00
João Marcos Bezerra
95ab1e763b
Merge pull request #20 from vrmiguel/dev
Update master from dev branch
0.1.5-rc
2021-04-06 23:25:11 -03:00
João M. Bezerra
3ac28b8d5c Fixing Windows build warnings 2021-04-06 23:16:39 -03:00
João M. Bezerra
bb004dc78c Fixing Windows build: no termion support 2021-04-06 23:12:40 -03:00
João M. Bezerra
df1bc879cb New --help message 2021-04-06 22:52:41 -03:00
João M. Bezerra
973af5fe1c Change evaluator.rs to commands.rs 2021-04-06 21:18:56 -03:00
João M. Bezerra
3869c2502e Moving bytes.rs implementation to utils.rs 2021-04-06 21:16:33 -03:00
Vinícius Miguel
20bcf1ecde evaluator: Fix an error message 2021-04-06 20:36:47 -03:00
João M. Bezerra
aa03d2723e Separate lib from binary
Makes integration testing easier
2021-04-06 20:22:56 -03:00
João M. Bezerra
78d5f435ee Minor style changes 2021-04-06 20:14:33 -03:00
João M. Bezerra
575abeb454 Testing bytes formatting 2021-04-06 20:12:51 -03:00