Updated documentation

This commit is contained in:
Eduard Urbach 2025-06-02 17:14:09 +02:00
parent 81cf657a9b
commit edcc0bbe69
Signed by: eduard
GPG key ID: 49226B848C78F6C8

View file

@ -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
```