{"id":21135505,"url":"https://github.com/mrrobb/ghloc-rs","last_synced_at":"2025-05-06T23:41:55.448Z","repository":{"id":63415180,"uuid":"567337821","full_name":"MrRobb/ghloc-rs","owner":"MrRobb","description":"🐙 ghloc: Count the number of lines of code of a GitHub repository","archived":false,"fork":false,"pushed_at":"2022-11-21T17:12:02.000Z","size":62,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T14:10:04.548Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/MrRobb/ghloc-rs","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MrRobb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-17T15:21:54.000Z","updated_at":"2025-01-25T21:41:10.000Z","dependencies_parsed_at":"2023-01-22T12:45:52.345Z","dependency_job_id":null,"html_url":"https://github.com/MrRobb/ghloc-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrRobb%2Fghloc-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrRobb%2Fghloc-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrRobb%2Fghloc-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrRobb%2Fghloc-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrRobb","download_url":"https://codeload.github.com/MrRobb/ghloc-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252788378,"owners_count":21804280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T06:56:12.324Z","updated_at":"2025-05-06T23:41:55.431Z","avatar_url":"https://github.com/MrRobb.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐙 ghloc-rs\n\n[![Crates.io](https://img.shields.io/crates/v/ghloc)](https://crates.io/crates/ghloc)\n[![Docs.rs](https://docs.rs/ghloc/badge.svg)](https://docs.rs/ghloc/latest/ghloc)\n[![codecov](https://codecov.io/gh/MrRobb/ghloc-rs/branch/master/graph/badge.svg)](https://codecov.io/gh/MrRobb/ghloc-rs)\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/MrRobb/ghloc-rs/blob/master/LICENSE)\n\nWe 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.\n\n![CLI Showcase](assets/cli.png)\n\n\u003e Actively maintained! If you have any problem just [create an issue](https://github.com/MrRobb/ghloc-rs/issues/new).\n\n### Install\n\n```bash\ncargo install ghloc\n```\n\n### Usage\n    \n```bash\nghloc \"https://github.com/MrRobb/ghloc-rs\"\n```\n\n### TODO\n\n- [ ] CI / CD:\n  - [ ] Add tests.\n  - [ ] Get rid of `unwrap()`.\n  - [ ] Add [no_panic](https://docs.rs/no-panic/).\n- [ ] Code:\n  - [x] File selection.\n  - [ ] Local repository support.\n  - [ ] Git authentication.\n  - [ ] Add comments and blank space to the output.\n- [ ] UI:\n  - [ ] Inline statistics.\n  - [ ] Percentages.\n  - [ ] Colors for each bar (using [github-colors](https://github.com/ozh/github-colors)).\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the MIT License. See [`LICENSE`](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrrobb%2Fghloc-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrrobb%2Fghloc-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrrobb%2Fghloc-rs/lists"}