/github-slug.sh

get slugs from GitHub

Primary LanguageShellMIT LicenseMIT

github-slug.sh

test

get slugs from GitHub

use gh repo list instead

Installation

add to .bashrc or .bash_profile the following:

. /path/to/github-slug.sh

Requirements

Usage

output repository slugs:

$ github-slug -u sasaplus1

output only private repository slugs:

$ github-slug -u sasaplus1 -p true

output repository slugs without private repositories:

$ github-slug -u sasaplus1 -p false

for GitHub Enterprise:

$ GH_HOST=example.com github-slug -u sasaplus1

more info:

$ github-slug -h

Change command name

$ export _GITHUB_SLUG_COMMAND=slug
$ . /path/to/github-slug.sh
$ slug -h

License

The MIT license.