gh-go-rdeps

command
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 18 Imported by: 0

README

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

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