github-heatmap

Crates.iogithub-heatmap
lib.rsgithub-heatmap
version1.0.0
sourcesrc
created_at2022-09-24 01:04:25.811992
updated_at2022-09-24 08:32:57.446023
descriptionA CLI tool used to scrape a Github profile and mirror the SVG contribution heatmap as Unicode.
homepagehttps://github.com/adenh93/github-heatmap
repositoryhttps://github.com/adenh93/github-heatmap
max_upload_size
id672741
size77,083
Aden Herold (adenh93)

documentation

README

github-heatmap

Crate Version Deploy Develop

A CLI tool built with Rust to scrape a Github profile and mirror the SVG heatmap as Unicode.

This is intended to be a fun little project to play around with scraping with Rust. I know that it's not the most efficient way to get these results, especially given that Github's GraphQL API is quite extensive.

Basic Usage

github-heatmap <slug> <args>

Arguments

Argument Alias Description Type Default
Slug Github profile slug, e.g. torvalds String
--color -c Heatmap color scheme. Nodes will be shaded depending on heat level. red | green | blue green
--year -y Specific year to fetch contributions. If not provided, contributions will be fetched for the last 365 days. String

Examples

Default arguments

github-heatmap torvalds

default example

Alternative Color

github-heatmap torvalds -c blue

alternative colors example

Filter by year

github-heatmap torvalds -y 2022

filter by years example

TODO

  • Error handling
  • Argument validation/value parsers
  • Testing
  • Documentation
  • Publish to crates.io
Commit count: 35

cargo fmt