github-snippets

command module
v0.0.0-...-089fca6 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

README

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
    

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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