Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Star GitHub repos from the command line

Project description

ghstar

Star GitHub repos from the command line.

# set the environment variables GH_UNAME and GH_TOKEN
# to your GitHub username and token/password

$ ghstar gokulsoumya/ghstar
Starred gokulsoumya/ghstar

(Because the command line is awesome, browsers are a hassle, and I'm lazy.)

Installation

ghstar is written in Python3, available on PyPI and installable via pip:

pip install ghstar

Usage

You must first set the environment variables GH_UNAME and GH_TOKEN to your GitHub username and token/password. It is recommended to use a token with public_repo scope instead of your password though either one works.

$ ghstar --help

usage: ghstar [-h] [-i] [-n SEARCH_COUNT] repo

Star GitHub repos from the command line.

positional arguments:
  repo                  name of repo to star

optional arguments:
  -h, --help            show this help message and exit
  -i, --interactive     search for a repo and star interactively
  -n SEARCH_COUNT, --search-count SEARCH_COUNT
                        number of search results to show when run
                        interactively

examples:
  ghstar gokulsoumya/ghstar
  ghstar jlevy/the-art-of-command-line

Contributing

If you have a feature request or if you've found a nasty lil bug, definitely open an issue. And PRs are, as always, welcome.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ghstar, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size ghstar-0.2.0-py3-none-any.whl (4.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ghstar-0.2.0.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page