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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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