Gabriel Simonetto
704a4efdd7
Merge branch 'master' into issue-56
2021-10-30 11:31:09 -03:00
Gabriel Simonetto
09b050d836
Introduce fs_err as a replacement for fs
2021-10-30 11:17:38 -03:00
Anton Hermann
10f7462b8b
Introduce new type for policy on how to handle questions
2021-10-21 23:31:53 +02:00
João Marcos Bezerra
e17eb9595e
Merge branch 'master' into migrate-to-clap
2021-10-20 14:04:19 -03:00
TATSUNO Yasuhiro
4404b91a23
refactoring: Extract function ( #116 )
2021-10-20 01:10:10 -03:00
TATSUNO Yasuhiro
5f7d777342
Change display of current directory ( #119 )
2021-10-20 00:57:11 -03:00
TATSUNO Yasuhiro
2e6cd893dc
Omit "./" at the start of the path ( #109 )
2021-10-19 12:57:11 -03:00
Spyros Roum
e24c9ce931
Replace oof with clap
2021-10-19 14:42:07 +03:00
figsoda
2feefb3ca3
minor cleanups
2021-10-17 18:02:32 -04:00
João M. Bezerra
15c54a615d
Renaming NO_COLOR_IS_SET to DISABLE_COLORED_TEXT
2021-10-15 09:35:07 -03:00
figsoda
161b8d0d66
refactor: better NO_COLOR support
2021-10-14 21:27:11 -04: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
e7dd6f2d4f
Don't use colors when stdout
or stderr
are being redirected
2021-10-05 21:12:15 -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
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
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
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
João M. Bezerra
d1734b54cb
Eliding some lifetimes
2021-05-28 03:14:03 -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
d01947d9e1
Adding rustfmt.toml and reformatting
2021-05-16 17:52:29 -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
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
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
3869c2502e
Moving bytes.rs implementation to utils.rs
2021-04-06 21:16:33 -03:00
João M. Bezerra
78d5f435ee
Minor style changes
2021-04-06 20:14:33 -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
011626f09b
(WIP) Minor misc. changes
2021-04-05 02:57:46 -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
b45f38f5fa
Add utils::to_utf
2021-04-04 23:18:25 -03:00
João M. Bezerra
5b37a117f1
Clippy lints
2021-04-04 01:58:22 -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
0f0b086943
Use the the -y and -n flags when decompressing .tar and .zip
2021-03-29 01:37:01 -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
8e37078043
zip: ensure usage of relational paths during compression
2021-03-26 22:56:57 -03:00
João M. Bezerra
ce26246fd4
Changing the error imports
2021-03-26 14:03:06 -03:00
João M. Bezerra
755cc2a40d
Refactoring and Clippy warnings
2021-03-25 20:50:42 -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
bdc16fdb17
Add support for Bzip compression (includes .tar.bz2 and .zip.bz2 and etc)
2021-03-24 14:33:43 -03:00