sarchiver 0.0.1
sarchiver: ^0.0.1 copied to clipboard
A CLI app to compress and decompress various files into various compression formats. Supported compression formats: Zip, Tar
SArchiver #
A CLI app to compress and decompress various files into various compression formats. Supported compression formats: Zip, Tar
Installation #
1. Using binary executable #
Download latest binary release from here
$ ./sarchiver
2. Using Pub.dev #
$ dart pub global activate sarchiver
3. Manual #
$ git clone https://github.com/surajkarki66/SArchiver
$ cd SArchiver
$ dart run ./bin/sarchiver.dart
Usage #
$ sarchiver <command> [arguments]
Global Options
-h, --help
Display help
Available Commands
compress
Compress files into a specific compression format.
decompress
Decompress the compressed file into original files.
Compress Arguments
-i, --input-path
Specify path to input file or directory
-o, --output-file-path
Specify path to store compressed file
-f, --format
Specify compression file format [zip (default), tar]
Decompress Arguments
-i, --input-file-path
Specify path to input compressed file
-o, --output-file-path
Specify path to store decompressed file
Help #
$ sarchiver --help
Examples #
Below are some examples of sarchiver usage.
- Compress the file in the current directory and store the compressed file in the current directory:
$ ./sarchiver compress -i passport.pdf -o ./
Loading...
Compressed 1 into ./1683283436296.zip
- Decompress the compressed file in the current directory and store the decompressed file in the current directory.
$ ./sarchiver decompress -i 1683283436296.zip -o ./
Decompressed: passport.pdf (450222 bytes)
Loading...
- Compressing multiple files into a single compressed file and storing it in the current directory:
$ ./sarchiver compress -i passport.pdf,resume.pdf,IMG_7569.jpg -o ./
Loading...
Compressed 3 into ./1683284112543.zip
- Compressing multiple files into a tar file and storing it in the current directory:
$ ./sarchiver compress -i passport.pdf,resume.pdf,IMG_7569.jpg -o ./ -f tar
Loading...
Compressed 3 into ./1683284266080.tar