tldr/pages/common/loc.md

21 lines
444 B
Markdown
Raw Normal View History

2018-10-24 22:04:34 +03:00
# loc
> Tool written in Rust that counts lines of code.
2019-06-05 10:55:54 +03:00
> More information: <https://github.com/cgag/loc>.
2018-10-24 22:04:34 +03:00
- Print lines of code in the current directory:
`loc`
- Print lines of code in the target directory:
`loc {{path/to/directory}}`
- Print lines of code with stats for individual files:
`loc --files`
- Print lines of code without .gitignore (etc.) files (e.g. two -u flags will additionally count hidden files and dirs):
`loc -u`