Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1002 Bytes

File metadata and controls

33 lines (19 loc) · 1002 Bytes

ghfetch

Your GitHub profile in a nutshell.

The graphic on the left is an ASCII version of the contribution graph.

demo

Installation

go install github.com/thdxg/ghfetch

This program uses the GitHub GraphQL API, which requires a GitHub access token. See the next session for how to create one.

GitHub Token

To create a token from Settings > Developer settings > Personal Access Tokens. The minimal permission required for this program is read:profile.

After creating the token, set it as an environment variable GHFETCH_TOKEN.

Usage

Contribution Graph

By default, the program shows the past 6 months' contribution. You can change this by providing the number of years as a flag. The value can be a float.

ghfetch <username> --years 2

Note that setting a wide range will result in a horizontally long graph.