Updated documentation
This commit is contained in:
parent
81cf657a9b
commit
edcc0bbe69
1 changed files with 18 additions and 8 deletions
|
@ -10,32 +10,42 @@ cargo install fnl
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
### Single file
|
||||||
|
|
||||||
Show status:
|
Show status:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
fnl file.txt
|
fnl file.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Add final newline:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
fnl --add file.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
Remove final newline:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
fnl --remove file.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
### Multiple files
|
||||||
|
|
||||||
|
Show status:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
find . -type f -name "*.txt" | xargs fnl
|
find . -type f -name "*.txt" | xargs fnl
|
||||||
```
|
```
|
||||||
|
|
||||||
Add final newlines:
|
Add final newlines:
|
||||||
|
|
||||||
```shell
|
|
||||||
fnl --add file.txt
|
|
||||||
```
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
find . -type f -name "*.txt" | xargs fnl --add
|
find . -type f -name "*.txt" | xargs fnl --add
|
||||||
```
|
```
|
||||||
|
|
||||||
Remove final newlines:
|
Remove final newlines:
|
||||||
|
|
||||||
```shell
|
|
||||||
fnl --remove file.txt
|
|
||||||
```
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
find . -type f -name "*.txt" | xargs fnl --remove
|
find . -type f -name "*.txt" | xargs fnl --remove
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue