mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 07:58:59 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
25
tldr/loc
Normal file
25
tldr/loc
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# loc
|
||||
|
||||
> Count lines of code. Written in Rust.
|
||||
> More information: <https://github.com/cgag/loc>.
|
||||
|
||||
- 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`
|
||||
Reference in New Issue
Block a user