From edcc0bbe6969ecc7b1c8fd36ea0139e1a471870e Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Mon, 2 Jun 2025 17:14:09 +0200 Subject: [PATCH] Updated documentation --- docs/readme.md | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/docs/readme.md b/docs/readme.md index d330a9f..06b4bd8 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -10,32 +10,42 @@ cargo install fnl ## Usage +### Single file + Show status: ```shell fnl file.txt ``` +Add final newline: + +```shell +fnl --add file.txt +``` + +Remove final newline: + +```shell +fnl --remove file.txt +``` + +### Multiple files + +Show status: + ```shell find . -type f -name "*.txt" | xargs fnl ``` Add final newlines: -```shell -fnl --add file.txt -``` - ```shell find . -type f -name "*.txt" | xargs fnl --add ``` Remove final newlines: -```shell -fnl --remove file.txt -``` - ```shell find . -type f -name "*.txt" | xargs fnl --remove ```