https://github.com/rucub100/loc
A simple CLI tool for counting lines of code, written in Rust.
https://github.com/rucub100/loc
cli lines-of-code rust sloc
Last synced: about 2 months ago
JSON representation
A simple CLI tool for counting lines of code, written in Rust.
- Host: GitHub
- URL: https://github.com/rucub100/loc
- Owner: rucub100
- License: mit
- Created: 2025-07-27T19:06:11.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-08-14T18:48:39.000Z (about 2 months ago)
- Last Synced: 2025-08-14T20:18:55.128Z (about 2 months ago)
- Topics: cli, lines-of-code, rust, sloc
- Language: Rust
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# loc
A simple CLI tool for counting lines of code, written in Rust.
## Usage
Run the binary with optional flags to scan a directory and count lines of code.
Synopsis:
```
loc [OPTIONS]
```Options:
- -p, --path
Directory to scan for source files (defaults to current directory)- -n, --no-ignore [alias: disable-ignore]
Disable default ignore patternsExamples:
- Scan the current directory:
`loc`- Scan a specific directory:
`loc -p ./src`- Disable default ignore patterns:
`loc --no-ignore`- Windows path example:
`loc --path C:\\Projects\\my-app`From source:
- Build: `cargo build --release`
- Run: `cargo run -- [OPTIONS]`## Features
- Counts lines of code in supported languages
- Ignores common build and dependency directories by default
- Option to disable ignore patterns