Lists GitLab repos for piping into programs such as dmenu
Caches all available GitLab repositories in a local file.
gl-repos-cache
GITLAB_TOKEN
GitLab access tokenGITLAB_ENDPOINT
GitLab API URLGITLAB_REPO_CACHE
File to store cache in
Lists all repos from the cache. Useful for programs such as dmenu.
gl-repos-cache
GITLAB_REPO_CACHE
File to read cache from.
# 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.