Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pacifio/loci
A simple python script that will show you how many lines you've written inside your code project !
https://github.com/pacifio/loci
cli codelines python script
Last synced: 4 days ago
JSON representation
A simple python script that will show you how many lines you've written inside your code project !
- Host: GitHub
- URL: https://github.com/pacifio/loci
- Owner: pacifio
- Created: 2020-11-01T11:55:22.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-10T04:23:47.000Z (almost 4 years ago)
- Last Synced: 2023-03-06T22:09:21.536Z (over 1 year ago)
- Topics: cli, codelines, python, script
- Language: Python
- Homepage:
- Size: 3.21 MB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LOCI
LOCI means Lines Of Codes Indicator . A simple python script that will show you how many lines you've written inside your code project !
```bash
git clone https://github.com/pacifio/loci.git
cd loci
```
Now add loci to the pathNow in your project use loci
```bash
cd YOUR_PROJECT
loci.py LANG
```Suported languages
* html
* css
* javascript
* typescript
* python
* dart
* c
* c++You can add custom languages . The configuration file lives under ```~/.config/loci.json```
The configuration for your language is set like this
```json
"LANGUAGE_NAME": {
"extension": "LANGUAGE_EXTENSION",
"ids": ["LANGUAGE_ID"]
}
```Example configuration for ```dart```:
```json
"dart": {
"extension": ".dart",
"ids": ["dart", "flutter", ".dart"]
}
```here the ids are how loci identifies differet languages . For dart
```bash
loci.py dart
```
and
```bash
loci.py flutter
```both of these commands are the same . These are ids . You can add more languages in the main configuration file which lives at ```~/.config/loci.json```