--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.
- Download a GitHub Personal Access Token to a file locally,
$HOME/github.oauth
is the file that will be used in these instructions. - Determine the GitHub user to run on, e.g. 'Harwayne'.
- 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'. - Run the tool.
go run main.go --token_file=$HOME/github.oauth --user=Harwayne --start=01-31-2018