mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 19:56:55 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
41
tldr/scc
Normal file
41
tldr/scc
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# scc
|
||||
|
||||
> Count lines of code. Written in Go.
|
||||
> 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`
|
||||
Reference in New Issue
Block a user