├── README.md ├── archive ├── archive-create ├── archive-extract ├── build-package.sh └── debian └── control /README.md: -------------------------------------------------------------------------------- 1 | # archive-cli 2 | KISS extract/compress easy to learn function 3 | 4 | ### About 5 | Extract/Compress easy to learn function. 6 | I complained against all the CLI commands on linux to compress / decompress files and folders. 7 | So I've write scripts. 8 | 9 | - One command to compress :`archive-create` (only 2 parameters available) 10 | 11 | - One command to decompress/extract: `archive-extract` 12 | 13 | The script take care of the file extension to call the good command. 14 | 15 | ### Install 16 | ### With APT (recommended) 17 | echo "deb http://packages.azlux.fr/debian/ buster main" | sudo tee /etc/apt/sources.list.d/azlux.list 18 | wget -qO - https://azlux.fr/repo.gpg.key | sudo apt-key add - 19 | apt update 20 | apt install archive-cli 21 | 22 | ### Manually 23 | you can use a simple `git clone` 24 | -------------------------------------------------------------------------------- /archive: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azlux/archive-cli/5cb57581224e4e2d36eba101fe43f42357813ff3/archive -------------------------------------------------------------------------------- /archive-create: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # check is programm is installed 4 | function check { 5 | if ! foobar_loc="$(type -p "$1")" || [[ -z $foobar_loc ]]; then 6 | echo "$1 isn't installed." 7 | exit 0 8 | fi 9 | } 10 | 11 | function ask_extension() { 12 | read -p "Enter extension: " ext 8 | Description: extract/compress easy to learn functions 9 | Homepage: https://github.com/azlux/archive-cli 10 | Bugs: https://github.com/azlux/archive-cli/issues 11 | --------------------------------------------------------------------------------