https://github.com/mrrobb/ghloc-rs
🐙 ghloc: Count the number of lines of code of a GitHub repository
https://github.com/mrrobb/ghloc-rs
Last synced: about 1 year ago
JSON representation
🐙 ghloc: Count the number of lines of code of a GitHub repository
- Host: GitHub
- URL: https://github.com/mrrobb/ghloc-rs
- Owner: MrRobb
- License: mit
- Created: 2022-11-17T15:21:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-21T17:12:02.000Z (over 3 years ago)
- Last Synced: 2025-04-23T14:10:04.548Z (about 1 year ago)
- Language: Rust
- Homepage: https://github.com/MrRobb/ghloc-rs
- Size: 60.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🐙 ghloc-rs
[](https://crates.io/crates/ghloc)
[](https://docs.rs/ghloc/latest/ghloc)
[](https://codecov.io/gh/MrRobb/ghloc-rs)
[](https://github.com/MrRobb/ghloc-rs/blob/master/LICENSE)
We have [tokei](https://crates.io/crates/tokei) and [ghloc.vercel.app](https://ghloc.vercel.app/) for counting lines of code in a GitHub repository. But what if you want to count lines of code in a GitHub repository from the command line? Well, that's what this crate is for.

> Actively maintained! If you have any problem just [create an issue](https://github.com/MrRobb/ghloc-rs/issues/new).
### Install
```bash
cargo install ghloc
```
### Usage
```bash
ghloc "https://github.com/MrRobb/ghloc-rs"
```
### TODO
- [ ] CI / CD:
- [ ] Add tests.
- [ ] Get rid of `unwrap()`.
- [ ] Add [no_panic](https://docs.rs/no-panic/).
- [ ] Code:
- [x] File selection.
- [ ] Local repository support.
- [ ] Git authentication.
- [ ] Add comments and blank space to the output.
- [ ] UI:
- [ ] Inline statistics.
- [ ] Percentages.
- [ ] Colors for each bar (using [github-colors](https://github.com/ozh/github-colors)).
## License
Distributed under the MIT License. See [`LICENSE`](LICENSE) for more information.