Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moderrek/lines
Blazingly FAST concurrent line of code counter created in GO
https://github.com/moderrek/lines
cli command-line concurrency go golang line linecount linecounter thread threading tools utility
Last synced: about 3 hours ago
JSON representation
Blazingly FAST concurrent line of code counter created in GO
- Host: GitHub
- URL: https://github.com/moderrek/lines
- Owner: Moderrek
- License: mit
- Created: 2024-06-08T14:40:26.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-10T09:08:40.000Z (4 months ago)
- Last Synced: 2024-07-10T11:01:13.676Z (4 months ago)
- Topics: cli, command-line, concurrency, go, golang, line, linecount, linecounter, thread, threading, tools, utility
- Language: Go
- Homepage:
- Size: 45.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# ⚡ Blazingly FAST Line Counter
![GitHub License](https://img.shields.io/github/license/Moderrek/lines)
[![Go](https://github.com/Moderrek/lines/actions/workflows/go.yml/badge.svg)](https://github.com/Moderrek/lines/actions/workflows/go.yml)
![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/Moderrek/lines/total)Fast command-line [concurrent](https://en.wikipedia.org/wiki/Concurrent_computing) **non-blank** line counter implemented in [GO](https://go.dev/) using [lightweight execution threads](https://go.dev/tour/concurrency/1).
## ⚙️ Usage
```shell
lines # Prints file with the most lines at current directory
lines --dir # Path to the analysis folder
lines --top N # Prints the top N files
lines --hidden # Allow to analyze hidden files & dirs
lines --version # Prints installed version
lines --help # Prints help
lines --no-color # Disables colored standard output
```### 📈 Example output
```bat
lines --dir C:\Users\Moderr\dev --top 5
``````out
Analyzing.. C:\Users\Moderr\dev.java | Lines of code: 24409
.json | Lines of code: 8828
.yaml | Lines of code: 4980
.tsx | Lines of code: 4357
.yml | Lines of code: 1122Time taken: 27.157ms to analyze 79 635 files
```## 📸 Screenshots
![Example Usage](/images/ss.png)
## 🖥️ Quick Start
Requires
- Installed [Git](https://www.git-scm.com/downloads)
- Installed [GO](https://go.dev/doc/install)Steps
1. Clone repository
```shell
git clone https://github.com/Moderrek/lines
```
2. Run
```shell
go run main.go
```## © License
```license
MIT LicenseCopyright (c) 2024 Tymon Woźniak
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```