4 releases (breaking)
0.6.0 | Jan 21, 2024 |
---|---|
0.5.0 | Apr 7, 2023 |
0.4.0 | Apr 5, 2023 |
0.3.0 | Mar 19, 2023 |
#359 in Compression
21KB
484 lines
Magic pack
This the pack tool, it's provides user can easy to compress and decompress without remember a lot of commands.
Quick install
cargo install magic-pack
Commands
just all
just all-release
just quality
Command
Uages
Magic pack tool
Usage: magic-pack [OPTIONS] <--compress|--decompress> <INPUT>
Arguments:
<INPUT>
Options:
-c, --compress
-f <FILE_TYPE> [possible values: zip, tar, bz2, gz, tarbz2, targz]
-d, --decompress
-l, --level <LEVEL> [default: 5]
-o <OUTPUT> [default: .]
-h, --help Print help information
-V, --version Print version information
Example
// zip
./magic-pack -c -f zip -o temp/temp.zip src
./magic-pack -d -o temp/. temp/temp.zip
// tar
./magic-pack -c -f tar -o temp/temp.tar src
./magic-pack -d -o temp/. temp/temp.tar
// tar.bz2
./magic-pack -c -f tarbz2 -o temp/temp.tar.bz2 src
./magic-pack -d -o temp/. temp/temp.tar.bz2
// tar.gz
./magic-pack -c -f targz -o temp/temp.tar.gz src
./magic-pack -d -o temp/. temp/temp.tar.gz
Reference
Dependencies
~8–17MB
~241K SLoC