github-repos

get user github repos


Keywords
github, cli, python
License
Unlicense
Install
pip install github-repos==2020.12.3

Documentation

Installation

$ [sudo] pip install github-repos

Config

bash python
export GITHUB_TOKEN="your_github_token" os.environ["GITHUB_TOKEN"]="your_github_token"

Examples

delete orphaned repos (if basename = repo name)

$ cd ~/git/owner
$ python -m github_repos | awk -F '/' '{print $2}' | grep -v -iF "$(ls -1)" | xargs python -m github_delete

readme42.com