tldr/pages/common/cloc.md

16 lines
409 B
Markdown
Raw Normal View History

# cloc
> Count, and compute differences of, lines of source code and comments.
- Count all the lines of code in a directory:
2016-05-06 06:44:10 +01:00
`cloc {{directory}}`
- Count all the lines of code in a directory, displaying a progress bar during the counting process:
2016-05-06 09:57:18 +01:00
`cloc --progress=1 {{directory}}`
- Compare 2 directory sturctures and count the differences between them:
2016-05-06 06:44:10 +01:00
`cloc --diff {{directoryone}} {{directorytwo}}`