Talison Fabio
f65444d2fb
feat: add conditional smart_unpack when --dir is provided
2025-04-04 18:30:50 -03:00
Talison Fabio
4f9a786e57
feat: add flag to check when use specify --dir
2025-04-04 18:30:50 -03:00
Talison Fabio
31dd9eb923
feat: Add rename option in overwrite menu ( #779 )
...
* feat: Add generic Choice prompt implementation
* feat: use ChoicePrompt in user_wants_to_continue method
* feat: add "rename" option in ask_to_create_file method
* feat: check accessible mode for choises prompt
* feat: rename file in "ask_to_create_file" rename action
* feat: create "resolve_path" for smart_unpack to deal with rename
* feat: use resolve_path instead clear_path in smart_unpack
* fix: remove unused clear_path function
* chore: cargo fmt
* Add docs
* refactor: rename "resolve_path" method
* chore: fix ChoicePrompt doc
* doc: improve doc of resolve_path_conflict
* fix: out of bound when type answer bigger than some choice
* doc: improve rename_path docs
* chore: cargo fmt
* chore: revert user_wants_to_continue
* fix: update error message when find EOF in choise prompt response
* revert: update message error in ChoicePrompt instead Confirmation
* test: add overwrite and cancel tests
* test: Add rename test with "allow_piped_choice" new feature
* cargo fmt
* test: create test for autoincrement new renamed files
2025-03-30 19:19:21 -03:00
Pascal Hertleif
ecc05cdd60
feat: Add support for Brotli
...
Using https://crates.io/crates/brotli/7.0.0
#203
2025-02-12 13:59:18 -03:00
Pascal Hertleif
58271ab77f
refactor(cli): Clearer docs for -y/-n
2025-02-12 10:12:54 -03:00
Pascal Hertleif
fadfe1a213
fix(cli): Align docs phrasing and capitalization
2025-02-12 10:12:54 -03:00
Pascal Hertleif
f3b7c0277f
fix(cli): Fix typo in 'concurrent'
2025-02-12 10:12:54 -03:00
Pascal Hertleif
aeefa694bf
fix: Use BufWriter for list output
...
Also replaces one `print` call with `write`.
Fixes #702
2025-02-12 10:10:37 -03:00
ttyS3
28d0933d6c
fix: change threads short flag to -c in cli args to avoid conflict with tree
2024-12-14 19:52:32 -03:00
ttyS3
e1d7f1424a
refactor: improve code formatting in mod.rs
and logger.rs
2024-12-14 19:52:32 -03:00
ttyS3
77b01d170f
refactor(cli): move thread pool setup to command execution, use thread::spawn instead of rayon::spawn in the logger thread
2024-12-14 19:52:32 -03:00
ttyS3
6b38e1dd46
feat: add concurrent working threads option to CLI args
2024-12-14 19:52:32 -03:00
ttyS3
499ad77657
fix(cli): remove default value for remove flag in Subcommand
2024-12-14 19:22:56 -03:00
ttyS3
5941afe66e
chore: remove decompress file params info to make ui_test_ok_decompress test case pass
2024-12-14 19:22:56 -03:00
ttyS3
353c360f6f
style: cargo fmt with nightly version
2024-12-14 19:22:56 -03:00
ttyS3
62f3d78f44
refactor(decompress): refactor function to use DecompressOptions struct to make linter happy (too_many_arguments)
2024-12-14 19:22:56 -03:00
ttyS3
55aa05b631
feat(cli): add option to remove source file after decompression
2024-12-14 19:22:56 -03:00
ttyS3
22d4e0faf0
chore: add comments about RAR 4.x and 5.0 signature
2024-12-02 12:34:48 -03:00
João Marcos P. Bezerra
7ea0625860
refac: simplify error treatment
2024-11-20 04:44:53 -03:00
João Marcos P. Bezerra
3e890eb307
chore: rename functions and fix wrong logs
2024-11-20 03:32:20 -03:00
João Marcos P. Bezerra
cc530bea94
refac: simplify logger shutdown system
2024-11-20 03:32:20 -03:00
João Marcos P. Bezerra
df6d2cea98
tweak: don't add period to end of each log
2024-11-18 00:32:17 -03:00
João Marcos P. Bezerra
2eca233132
chore: update comments
2024-11-18 00:32:17 -03:00
João Marcos P. Bezerra
e108e5b778
chore: improve message after moving file
2024-11-18 00:03:55 -03:00
João Marcos P. Bezerra
223f82d538
refac: simplify smart_unpack
2024-11-18 00:02:22 -03:00
João Marcos P. Bezerra
60d5897de1
fix: don't shutdown logger after flush
2024-11-17 23:52:39 -03:00
João Marcos P. Bezerra
b21b757af1
chore: improve log message
2024-11-17 23:49:31 -03:00
João Marcos P. Bezerra
065124cd30
tweak: improve error message
...
in case the user is trying to decompress a file with no filestem, just
the extension, which is confusing
2024-11-17 23:49:18 -03:00
João Marcos P. Bezerra
4bb759b21c
tweak: improve error message
...
in case the user is trying to decompress a file with no filestem, just
the extension, which is confusing
2024-11-17 23:47:24 -03:00
João Marcos P. Bezerra
5b78b96fa1
fix: warnings not shown before stdin interaction
2024-11-17 23:47:11 -03:00
João Marcos P. Bezerra
639ef19fbc
chore: simplify code after feature stabilization
...
no need to reimplement `Path::is_symlink` anymore
2024-11-17 21:21:58 -03:00
João M. Bezerra
8edd8d2e1c
Replace .unwrap()
s by ?
2024-11-17 14:50:02 -03:00
Jonas Frei
32b50e9c7a
Added test code, handled BlockSize error, block size = 16MiB
...
Signed-off-by: Jonas Frei <freijon@pm.me>
2024-11-17 14:50:02 -03:00
Jonas Frei
ba9f9c00f3
Add support for bzip3
...
Closes #398
Signed-off-by: Jonas Frei <freijon@pm.me>
2024-11-17 14:50:02 -03:00
valoq
e2151c93d5
fix format to appease linter
2024-10-22 00:00:19 -03:00
valoq
83f28cf64a
change temporary path to a more unique name
2024-10-22 00:00:19 -03:00
João M. Bezerra
5dac8431f2
Fix --format
parsing extensions with dots
...
Also improve error reporting for `--format` with malformed or
unsupported extensions
This commit is very messy, as it also does an refac in the project,
which should ideally be in a separated commit
2024-09-07 00:24:50 -03:00
João M. Bezerra
1a80b919e3
Add tests to the extension module
2024-09-07 00:24:50 -03:00
ttyS3
a3d4f6ac6b
fix: simplify error handling for invalid password
2024-09-06 21:47:03 -03:00
ttyS3
c3e37e22d1
refactor(rar): simplify list_archive logic and remove UnrarError
...
Simplify the list_archive function by combining archive creation and listing steps.
Remove the UnrarError variant from the Error enum as it's no longer used.
2024-09-06 21:47:03 -03:00
ttyS3
f8f1439ec5
style: cargo fmt
2024-09-06 21:47:03 -03:00
ttyS3
84f1ec4daf
refactor(zip): remove redundant password byte conversion
...
Simplify password handling by removing platform-specific code and utilizing ByteSlice for all conversions.
2024-09-06 21:47:03 -03:00
ttyS3
56f69e19a3
fix(archive): return result in list_archive functions
2024-09-06 21:47:03 -03:00
ttyS3
39cef75dfe
fix(error): return result in list_archive
...
Refactor list_archive functions to return results directly for better error handling.
2024-09-06 21:47:03 -03:00
ttyS3
9e1c30bb86
fix(archive): handle mangled zip file names properly
...
Replace enclosed_name with mangled_name fallback for robustness.
2024-09-06 21:47:03 -03:00
ttyS3
9c69fbd911
fix: replace UnsupportedFormat error with UnrarError
...
Update error handling for unrar-specific issues to use the new UnrarError type.
2024-09-06 21:47:03 -03:00
ttyS3
7e830d9f53
fix(archive): handle errors for unsupported formats
...
Handle errors for unsupported formats in RAR and 7z archives by returning appropriate error messages.
2024-09-06 21:47:03 -03:00
ttyS3
bafbd83bd7
fix(archive): handle file open error in list_archive method
2024-09-06 21:47:03 -03:00
ttyS3
08ab63837e
fix(archive): handle invalid UTF-8 passwords in 7z decompression
2024-09-06 21:47:03 -03:00
ttyS3
67ca183a25
fix: fix windows build
2024-09-06 21:47:03 -03:00