#loc #language #object #cli #filesystem #utilityl

app dev-radars

Render a radar plot of your tech stack and print LOC statistics

3 releases

0.1.2 Feb 23, 2024
0.1.1 Feb 21, 2024
0.1.0 Feb 21, 2024

#574 in Command line utilities

Download history 126/week @ 2024-02-15 265/week @ 2024-02-22 20/week @ 2024-02-29 3/week @ 2024-03-07 28/week @ 2024-03-28 27/week @ 2024-04-04

55 downloads per month

MIT license

28KB
269 lines

dev-radars

Render a radar plot of your tech stack and print LOC statistics. dev-radars parses git objects to compute statistics per technology.

+-----------+------+
| Language  | LOC  |
+-----------+------+
| Rust      | 3637 |
+-----------+------+
| Python    | 2615 |
+-----------+------+
| SQLPL     | 1802 |
+-----------+------+
| Kotlin    | 1531 |
+-----------+------+
| Elm       | 560  |
+-----------+------+
| Nix       | 382  |
+-----------+------+
| Batchfile | 89   |
+-----------+------+
| Java      | 66    

dev-radars is something between running Aloc in a Docker container and executing random commands from the internet:

git ls-files | xargs -n1 git blame --line-porcelain | sed -n 's/^author //p' | sort -f | uniq -ic | sort -nr

Installation

Using cargo:

cargo install dev-radars

Usage

Usage: dev-radars [OPTIONS]

Options:
  -p, --path <PATH>         Which path(s) to search
  -d, --depth <DEPTH>       Depth of child directories to traverse
  -a, --author <AUTHOR>...  
  -t, --top-n <TOP_N>       [default: 10]
  -h, --help                Print help
  -V, --version             Print version

Examples

Parse a directory only up to a depth of 2

dev-radars -p /home/manuel/projects -d 2

When collecting the LOC, search for both author names foo and bar

dev-radars -p /home/manuel/projects -a "foo" -a "bar"

Todos

  • Parallel processing
  • Installation with Nix
  • Support multiple git user names (local and global)
  • Add progress bar

Dependencies

~113MB
~2M SLoC