From 06c69d4d8f35a7cd17c41da0af91af8fd1b7ab4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marcos=20Bezerra?= Date: Fri, 17 Sep 2021 03:00:48 -0300 Subject: [PATCH] README update --- README.md | 98 ++++++++++++++++++++++++------------------------------- 1 file changed, 43 insertions(+), 55 deletions(-) diff --git a/README.md b/README.md index b3f32ae..1f094a2 100644 --- a/README.md +++ b/README.md @@ -2,18 +2,17 @@ -`ouch` loosely stands for Obvious Unified Compression files Helper. +`ouch` stands for **Obvious Unified Compression Helper**, and works on _Linux_, _Mac OS_ and _Windows_. -It is an easy and painless way of compressing and decompressing files in the terminal. - -Works in `Linux`, `Mac OS` and `Windows`. +It is a CLI tool to compress and decompress files that aims to be easy to use. + +- [Installation](#Installation) - [Usage](#Usage) - [Decompressing files](#Decompressing-files) - [Compressing files/directories](#Compressing-files-and-directories) -- [Installation](#Installation) - [Supported Formats](#Supported-formats) - [Supported operating systems](#Supported-operating-systems) @@ -24,45 +23,43 @@ Works in `Linux`, `Mac OS` and `Windows`. Run `ouch` and pass compressed files as arguments. ```sh -# Decompress `a.zip` +# Decompress 'a.zip' ouch a.zip # Decompress multiple files ouch a.zip b.tar.gz ``` -Use the `-o/--output` flag to redirect the output of decompressions to a folder. +You can redirect the decompression results to a folder with the `-o/--output` flag. ```sh -# Decompress multiple files but inside new_folder -ouch a.zip b.tar.gz c.tar.bz2 -o new_folder +# Create 'pictures' folder and decompress inside of it +ouch 1.tar.gz 2.tar.gz -o pictures ``` ### Compressing Use the `compress` subcommand. -Accepts files and folders, and the **last** argument shall be the **output file**. +Accepts multiple files and folders, the **last** argument shall be the **output file**. ```sh -# Compress four files into `archive.zip` +# Compress four files into 'archive.zip' ouch compress 1 2 3 4 archive.zip + +# Compress folder and video into 'videos.tar.gz' +ouch compress videos/ meme.mp4 videos.tar.gz + +# Compress one file using 4 compression formats +ouch compress file.txt compressed.gz.xz.bz.zst + +# Compress all the files in current folder +ouch compress * files.zip ``` -The supplied **output file** shall have a supported compression format, [see the list](#Supported-formats). +`ouch` checks for the extensions of the **output file** to decide which formats should be used. -You can also use the `c` alias for this subcommand. - -```sh -# Compress a folder and a file into `videos.tar.xz` -ouch c Videos/ funny_meme.mp4 videos.tar.xz - -# Compress three files into a `.tar.bz2` archive -ouch c a.mp4 b.jpg c.png files.tar.bz2 - -# Compress two folders into a lzma file -ouch c src/ target/ build.tar.lz -``` +Check the [list of all file extensions supported](#Supported-formats). +- Open an issue. +- Open a pr. +- Share it to a friend.