Kruhlmann / gl-repos

Lists GitLab repos for piping into programs such as dmenu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gl-repos

Gem Build status Maintainability

Lists GitLab repos for piping into programs such as dmenu

gl-repos-cache

Caches all available GitLab repositories in a local file.

Usage

gl-repos-cache

Environment

  • GITLAB_TOKEN GitLab access token
  • GITLAB_ENDPOINT GitLab API URL
  • GITLAB_REPO_CACHE File to store cache in

gl-repos-list

Lists all repos from the cache. Useful for programs such as dmenu.

Usage

gl-repos-cache

Environment

  • GITLAB_REPO_CACHE File to read cache from.

Example

# gl.sh
$BROWSER `grep -i "$(gl-repos-list | dmenu -i -l 10)" $GITLAB_REPO_CACHE | awk '{sub(/.*:/,"")}1' | awk '{ print "https:" $1 }'`

Presents a list of readable repositories and opens the chosen one in the default browser.

About

Lists GitLab repos for piping into programs such as dmenu

License:GNU General Public License v3.0


Languages

Language:Ruby 100.0%