Crates.io | magic-pack |
lib.rs | magic-pack |
version | 0.6.0 |
source | src |
created_at | 2023-03-19 14:31:16.176516 |
updated_at | 2024-01-21 15:11:25.899223 |
description | Magic pack tool |
homepage | https://github.com/zondatw/magic-pack |
repository | https://github.com/zondatw/magic-pack |
max_upload_size | |
id | 814447 |
size | 42,520 |
This the pack tool, it's provides user can easy to compress and decompress without remember a lot of commands.
cargo install magic-pack
just all
just all-release
just quality
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
// 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