1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/scc.md
Vitor Henrique 46a054215a
pages*: make help and version commands comply with the style guide (#12107)
* pages*: use generic word for help

* git: add newline to the end

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* pages*: make help and version commands comply with the style guide

* java: fix Java name

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-01-30 12:55:24 +08:00

753 B

scc

Tool written in Go that counts lines of code. More information: https://github.com/boyter/scc.

  • Print lines of code in the current directory:

scc

  • Print lines of code in the target directory:

scc {{path/to/directory}}

  • Display output for every file:

scc --by-file

  • Display output using a specific output format (defaults to tabular):

scc --format {{tabular|wide|json|csv|cloc-yaml|html|html-table}}

  • Only count files with specific file extensions:

scc --include-ext {{go,java,js}}

  • Exclude directories from being counted:

scc --exclude-dir {{.git,.hg}}

  • Display output and sort by column (defaults to by files):

scc --sort {{files|name|lines|blanks|code|comments|complexity}}

  • Display help:

scc -h