Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/otiai10/gh-dependents
Just a web crawler to collect dependents of a GitHub repository.
https://github.com/otiai10/gh-dependents
cli extension extensions github
Last synced: 3 months ago
JSON representation
Just a web crawler to collect dependents of a GitHub repository.
- Host: GitHub
- URL: https://github.com/otiai10/gh-dependents
- Owner: otiai10
- License: mit
- Created: 2021-08-31T03:10:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T07:46:53.000Z (10 months ago)
- Last Synced: 2024-11-01T10:42:21.863Z (3 months ago)
- Topics: cli, extension, extensions, github
- Language: Go
- Homepage: https://github.blog/2021-08-24-github-cli-2-0-includes-extensions/
- Size: 198 MB
- Stars: 16
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gh-dependents
[![Actions Status](https://github.com/otiai10/gh-dependents/workflows/Go/badge.svg)](https://github.com/otiai10/gh-dependents/actions)
[![Web Test](https://github.com/otiai10/gh-dependents/actions/workflows/webtest.yaml/badge.svg)](https://github.com/otiai10/gh-dependents/actions/workflows/webtest.yaml)
[![codecov](https://codecov.io/gh/otiai10/gh-dependents/branch/main/graph/badge.svg)](https://codecov.io/gh/otiai10/gh-dependents)`gh` command extension to see dependents of your repository.
![screenshot](https://raw.githubusercontent.com/otiai10/gh-dependents/main/screenshot.png)
See The GitHub Blog: [GitHub CLI 2.0 includes extensions!](https://github.blog/2021-08-24-github-cli-2-0-includes-extensions/)
# Install
```sh
gh extension install otiai10/gh-dependents
```# Usage
```sh
gh dependents otiai10/lookpath
# gh dependents {user}/{repo}
```# Advanced Usage
```sh
gh dependents \
-v \ # Show verbose log
-page=2 \ # Only crawl 2 pages
-after=MjM1ODQzNDY1NzY \ # Only crawl after specific hash
-sort=fork \ # Sort output by num of forks
-pretty \ # Output in pretty format
otiai10/lookpath# For more information, hit
gh dependents -h
```# How it works
- This command just crawls `/network/dependents` page of your repository.
# Usage as a Go library
```go
package mainimport (
"github.com/otiai10/gh-dependents/ghdeps"
)func main() {
crawler := ghdeps.NewCrawler("otiai10/lookpath")
err := crawler.All()
if err != nil {
log.Fatalln(err)
}
fmt.Printf("%+v\n", crawler.Dependents)
}
```For more information, check https://pkg.go.dev/github.com/otiai10/gh-dependents/ghdeps
# Issues and Feature Request
- https://github.com/otiai10/gh-dependents/issues