An offline CLI tool to search your GitHub Stars.
MIT License
Search your stars locally.
usage: mystars [-h] [-l LANGUAGE [LANGUAGE ...]] [-u] [-r] [-a] [-3] [-i]
[-v]
[keywords [keywords ...]]
a CLI tool to search your starred Github repositories.
positional arguments:
keywords Search by keywords
optional arguments:
-h, --help show this help message and exit
-l LANGUAGE [LANGUAGE ...], --language LANGUAGE [LANGUAGE ...]
Filter by language
-u, --update Create(first time) or update the local stars index
-r, --reindex Re-create the local stars index
-c WHEN, --color WHEN
Colorize the output; WHEN can be 'always' (default if
omitted), 'auto', or 'never'
-a, --alfred Format search result as Alfred Script Filter output
-3, --three Alfred 3 support
-i, --install Import Alfred workflow
-v, --version show program's version number and exit
You can avoid entering your GitHub API credentials every time you update the index, by adding them to the ~/.netrc
file as follows:
machine api.github.com
login ‹GH_USERNAME›
password ‹GH_API_TOKEN›
Use an API token as the password – you can create one via Settings » Developer settings » Personal access tokens in the GitHub web interface.
Once you have stored credentials, you can also automate the index update by adding a job with crontab -e
:
# GitHub stars
0 6 * * * ~/.local/bin/mystars -u >~/.oh-my-stars/update.log
$ pip install oh-my-stars --upgrade --user
$ mystars --help
$ mystars --update
$ mystars angular upload
$ mystars --language python
$ mystars awesome python
if install failed, try following commands
$ pip uninstall distribute
$ pip install setuptools
$ pip install --upgrade setuptools
$ mystars -i -3
For Alfred v2
$ mystars -i
Note
mystars -r
.