stars

module
v0.4.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2019 License: MIT

README

stars

A command-line interface to your Github Stars. Some useful features:

  • Downloads metadata about all of your starred projects and saves it to disk
  • Unstars projects older than n months (by default, 2)
    • Also unstars projects that have been archived (by default - you can opt out).
  • Can let you display starred projects by criteria:
    • Language
    • Topics (labels)
    • Randomly
  • Can limit displayed results as specified
  • Can open queried starred projects in your browser for viewing

NOTE: Currently only macOS is supported. Support for other platforms will be considered if there is demand.

My personal workflow is to save all of my stars, prune old and archived ones, and display several random stars in my browser for me to view / explore. This is a type of Spaced Repetation Learning (think flash cards), that way I can stay relatively up-to-date on what my starred projects are. This is useful to me when I build software and need to know if there is a project already out there that solves my problems / fits my needs.

Development

To get started, you will need git and Go on your system. Then, you can run the following commands to build the binary:

git clone git@github.com:gkze/stars.git
cd stars
go build # need Golang 1.11+

NOTE: As mentioned in the comment above, you will need to have Go 1.11 installed at minimum. This project utilizes Go modules, which are only supported in Go 1.11 and above.

Installation

There are various methods availabel to install stars on your system:

Homebrew
brew install gkze/gkze/stars
Go
go get -u github.com/gkze/stars/cmd/stars

Binaries are also available on the releases page.

Configuration

You will need a ~/.netrc with a personal access token configured:

$ cat ~/.netrc
machine api.github.com
    login [your github username here]
    password [your github token here]

Usage

NAME:
   stars - Command-line interface to your GitHub stars

USAGE:
   stars [global options] command [command options] [arguments...]

VERSION:
   0.4.15

COMMANDS:
     save     Save all stars
     topics   list all topics of starred projects
     show     Show popular stars given filters
     clear    Clear local stars cache
     cleanup  Clean up old stars
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL