Skip to content

Latest commit

 

History

History

gh-go-rdeps

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

gh-go-rdeps

Find reverse Go dependencies across GitHub repositories. It supports go modules and dep.

Installation

cd
GO111MODULE=on go get github.com/pmatseykanets/gh-tools/cmd/gh-go-rdeps@latest

Usage

Usage: gh-go-rdeps [flags] <owner> <path>
  owner         Repository owner (user or organization)
  path          Module/package path

Flags:
  -help         Print this information and exit
  -no-repo=     The pattern to reject repository names
  -repo         The pattern to match repository names
  -token        Prompt for an Access Token
  -version      Print the version and exit

Environment variables

GHTOOLS_TOKEN and GITHUB_TOKEN in the order of precedence can be used to set a GitHub access token.

Examples

Find all Go repositories that depend on golang.org/x/sync:

gh-go-rdeps owner golang.org/x/sync

Find all Go repositories that start with api and depend on github.com/owner/library

gh-go-rdeps -repo '^api' owner github.com/owner/library