mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-15 14:55:44 +02:00
loc: add page (#2470)
This commit is contained in:
parent
eb80fc01fc
commit
657d915dc1
1 changed files with 19 additions and 0 deletions
19
pages/common/loc.md
Normal file
19
pages/common/loc.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# loc
|
||||||
|
|
||||||
|
> Tool written in Rust that counts lines of code.
|
||||||
|
|
||||||
|
- 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`
|
Loading…
Add table
Reference in a new issue