Lab

A cli tool with gitlab
Feature
- Fuzzy find your gitlab project, open it in web browser, use
lab browser.
- Open the current gitlab repository in web browser, use
lab open [remote]
- Clone gitlab repository, set default user config and manage it like gopath style, use
lab clone [-c]
use lab -h to see more useful commands.
Installation
homebrew
$ brew install ackerr/tap/lab
scoop
$ scoop bucket add ackerr https://github.com/Ackerr/scoop-bucket
$ scoop install ackerr/lab
go get
$ go get -u "github.com/ackerr/lab"
Usage
First, set the required environment variable
$ export GITLAB_BASE_URL=<GITLAB_BASE_URL>
$ export GITLAB_TOKEN=<GITLAB_TOKEN>
Then sync gitlab projects, use lab sync, then you can fuzzy find project use lab browser
Optional Env:
$ export GITLAB_CODESPACE=<path>
$ export GITLAB_USERNAME=<username>
$ export GITLAB_EMAIL=<email>