lab
lab is a cli client of gitlab like hub.
Installation
Go developer
Please getting source code and build.
go get github.com/lighttiger2505/lab
make ensure
go install
Binary donwload
Please running install script.
curl -s https://raw.githubusercontent.com/lighttiger2505/lab/master/install.sh | bash
Usage
- change directory gitlab repository
- lab command accesses gitlab quickly by useing repository infomation
$ cd {gitlab repository}
- laucn lab command
$ lab issue
- please input personal access token
- use the lab command you need Personal access take look here(
https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token
)
Please input GitLab private token : {your token}
Feature
Browse
Open gitlab pages on brwoser.
# open project page
$ lab browse
# open issue list page
$ lab browse #
$ lab browse i
# open issue detail page
$ lab browse #10
$ lab browse i10
List Issue and Merge Request
Show any list.
# List Issue
$ lab issue
# List Merge Request
$ lab merge-request
Add Issue and Merge Request
title and description input on editor.
# Add Issue
$ lab add-issue
# Add Merge Request
$ lab add-merge-request --target={target branch}
Configuration
auto create configuration file ~/.labconfig.yml
when launch lab command
Sample
# personal access token
# store key/value style
tokens:
gitlab.ssl.sample.jp: sampletoken
gitlab.ssl.lowpriority.jp: lowprioritytoken
# Determine priority when there are multiple pieces of remote information in the repository
preferreddomains:
- gitlab.ssl.sample.jp
- gitlab.ssl.lowpriority.jp