Categorygithub.com/jakehl/ghdl
modulepackage
1.0.0
Repository: https://github.com/jakehl/ghdl.git
Documentation: pkg.go.dev

# README

ghdl

A simple cli tool for working out how many times your github release assets have been downloaded in total.

currently only works on public repositories.

Installation

go get github.com/jakehl/ghdl

Usage

Usage: ghdl [--username USERNAME] [--password PASSWORD] [--oauth OAUTH] [--terse] OWNER REPO

Positional arguments:
  OWNER                  Repository owner
  REPO                   Repository name

Options:
  --username USERNAME, -u USERNAME
                         Username for authenticated requests
  --password PASSWORD, -p PASSWORD
                         Password for authenticated requests, if you have 2fa, use a Personal Access Token
  --oauth OAUTH, -a OAUTH
                         OAuth token for authenticated requests, you can also use a Personal Access Token
  --terse, -t            Minimal output mode
  --help, -h             display this help and exit

Example

ghdl JakeHL ghdl

output

Fetching release downloads for https://github.com/JakeHL/ghdl
Assets have been downloaded 1994 times

TODO

  • Add a flag for simple output
  • Add auth for private repositories