Crates.io | tnl |
lib.rs | tnl |
version | 0.2.0 |
source | src |
created_at | 2023-11-25 22:23:48.857018 |
updated_at | 2023-12-18 20:12:55.966065 |
description | Find files with missing trailing newlines. |
homepage | https://github.com/uncenter/tnl |
repository | https://github.com/uncenter/tnl |
max_upload_size | |
id | 1048611 |
size | 27,731 |
Find files with missing trailing newlines.
warning: missing "blazingly fast" in description
--> README.md:3:0
|
3 | ... Find files with missing trailing newlines.
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Blazingly fast tool to find files with missing trailing newlines.`
|
cargo install tnl
tnl <files>
You can use the --fix
flag to automatically add trailing newlines to files without. tnl
prints a message upon completion, listing the number of files checked (and the number of files fixed, if ran with --fix
). This message can be disabled with the --quiet
flag.
Tests use assert_cmd
to verify the exit codes and content of error messages and assert_fs
to test with temporary files.