tnl

Crates.iotnl
lib.rstnl
version0.2.0
sourcesrc
created_at2023-11-25 22:23:48.857018
updated_at2023-12-18 20:12:55.966065
descriptionFind files with missing trailing newlines.
homepagehttps://github.com/uncenter/tnl
repositoryhttps://github.com/uncenter/tnl
max_upload_size
id1048611
size27,731
uncenter (uncenter)

documentation

README

tnl

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

Installation

cargo install tnl

Usage

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

Tests use assert_cmd to verify the exit codes and content of error messages and assert_fs to test with temporary files.

License

MIT

Commit count: 25

cargo fmt