Skip to content

GitGrab: Stay up-to-date on your GitHub contributions with this open-source CLI tool.

License

Notifications You must be signed in to change notification settings

ArshErgon/gitgrab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

made with rust

gitGrab

An Open-Source tool for Open-Source Enthusiast that shows your GitHub Contribution on the terminal

Why its created?

I was quite active on open source contributions and needed to track my progress across multiple repositories. I was constantly going back and forth between different tools to check my issues, followers, and pull requests. In the meantime, I discovered neofetch, an awesome command-line interface program that displays basic information about the operating system. I thought, why not create something similar to it? The starting phase of GitGrab was quite similar to neofetch, but later I added language bars and a contribution graph etc to it. For those unfamiliar with these terms, language bars display the percentage of code contributed in each programming language, and a contribution graph shows the frequency of contributions over time.

Features

  • Can see a user information without deleting the permantent user.
  • All viewers information
  • Languages Bars
  • Contribution Graph
  • Lines Of Code
  • Compare with 2 users

LOC (lines of code)

Compare two users

Top Languages

Contribution Graph

Commands

Basic

$ gitgrab -o
  1. Create a User
  2. Enter/Update the Github API key
  3. Exit

For a temporary User

$ gitgrab -t <USERNAME>

For LOC (lines of code)

$ gitgrab --loc <URL>

For comparing users

$ gitgrab --com "<UserOne> <UserTwo>"

More commands

$ gitgrab -a

$ gitgrab -h

Installation

Remember you need to add github token also: your safety, What are token? and where it will be created. Give every permission except creating and deleting

Downloads

Cargo

If you have rust installed on your system run these commands to install

$ rustup default nightly

Then

$ cargo install gitgrab --git https://github.com/ArshErgon/gitgrab

if you need to update you now just need to run

$ cargo install  gitgrab --git https://github.com/ArshErgon/gitgrab --force

And if you want to remove it you do

$ cargo uninstall  gitgrab   

Linux

Download the binary from here, after downloading go to the place where its download (mostly on Desktop) and enter the command below.

$ sudo install -c gitgrab /usr/local/bin

Windows

Download the binary from here, There are two ways to run in windows.

  1. On the CMD, add to the path
C:> PATH=%PATH%;C:\path\to\gitgrab.exe
  1. Directly running the binary
C/Downloads>./gitgrab #or add gitgrab.exe if gets an error.

MacOS

Some builds gets failed as a result the installer wouldn't be made but you can still install it if you have cargo installed

$ cargo install path/to/project/gitfetch

Development

$ git clone https://github.com/USERNAME/gitgrab.git
$ cd gitgrab
$ cargo run -- -t USERNAME
OR
$ cargo run -- -o

to run your own or your friends github stats

cargo run -- -t USERNAME

API Key Security

As the key is save on your computer and I have no power to get it from your computer, your key is safe, but still when you are giving it the permission( as the contribution graph keeps all the ticks selected) please dont select the delete and creating; or anything you find which can harm you in data breach

https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token and give it all permission (expect: deleting or creating)

About

GitGrab: Stay up-to-date on your GitHub contributions with this open-source CLI tool.

Topics

Resources

License

Stars

Watchers

Forks