akashrv / github-snippets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flags

  • --token_file - The file to read the OAuth token out of. Required.
  • --user - The GitHub user to get snippets for. Defaults to 'Harwayne'.
  • --start - The start date. Defaults to the Monday of the most recently completed Monday-Monday week.
  • --duration - The duration after --start to search through. Defaults to one week.

Instructions

  1. Download a GitHub Personal Access Token to a file locally, $HOME/github.oauth is the file that will be used in these instructions.
  2. Determine the GitHub user to run on, e.g. 'Harwayne'.
  3. Determine the date to run on. By default it will pick the second most recent Monday (essentially the most recently completed Monday-Monday week). Use the %m-%d-%y format, e.g. '01-31-2018'.
  4. Run the tool.
    go run main.go --token_file=$HOME/github.oauth --user=Harwayne --start=01-31-2018

About

License:Apache License 2.0


Languages

Language:Go 100.0%