内容简介:GLab open source custom Gitlab Cli tool written in Go (golang) to help work seamlessly with Gitlab from the command line.Download a binary suitable for your OS at
GLab
GLab open source custom Gitlab Cli tool written in Go (golang) to help work seamlessly with Gitlab from the command line.
Usage
glab <command> <subcommand> [flags]
Core Commands
glab mr [list, create, close, reopen, delete] glab issue [list, create, close, reopen, delete] glab config glab help
Examples
$ glab issue create --title="This is an issue title" --description="This is a really long description" $ glab issue list --closed
Installation
Download a binary suitable for your OS at https://github.com/profclems/glab/releases/latest .
Windows
Available as an installable executable file or a Portable archived file in tar and zip formats at the releases page . Download and install now at the releases page .
The installable executable file sets the PATH automatically.
Linux
Download the zip, unzip and install:
- Download the
.zipfile from the releases page -
unzip glab-*-linux-amd64.zipto unzip the downloaded file -
sudo mv glab-*-linux-amd64/glab /usr/binto move to the bin path so you can executeglabglobally
Or download the tar ball, untar and install:
- Download the
.tar.gzfile from the releases page -
unzip glab-*-linux-amd64.tar.gzto unzip the downloaded file -
sudo mv glab-*-linux-amd64/glab /usr/bin
MacOS
- Download the
.tar.gzor.zipfile from the releases page and unzip or untar - ls /usr/local/bin/ || sudo mkdir /usr/local/bin/; to make sure the bin folder exists
-
sudo mv glab-*-darwin-amd64/glab /usr/bin
Building From Source
If a supported binary for your OS is not found at the releases page , you can build from source:
-
Verify that you have Go 1.13.8+ installed
$ go version go version go1.14
If
gois not installed, follow instructions on the Go website . -
Clone this repository
$ git clone https://github.com/profclems/glab.git glab-cli $ cd glab-cli
or
$ git clone https://gitlab.com/profclems/glab.git $ cd glab-cli
-
Build the project
$ make build
-
Move the resulting
bin/glabexecutable to somewhere in your PATH$ sudo mv ./bin/glab /usr/local/bin/
or
$ sudo mv ./bin/glab /usr/bin/
-
Run
glab helpto check if it worked.
Setting Up
After successfull installation, run:
glab config --token=<YOUR-GITLAB-ACCESS-TOKEN> --url=https://gitlab.com --pid=<YOUR-GITLAB-PROJECT-ID> --repo=OWNER/REPO
Example
glab config --token=sometoken --url=https://gitlab.com --pid=someprojectid --repo=profclems/glab
NB: Change gitlab.com to company or group's gitlab url if self-hosted
Envronment Variables
GITLAB_TOKEN: an authentication token for API requests. Setting this avoids being prompted to authenticate and overrides any previously stored credentials. GITLAB_REPO: specify the Gitlab repository in "OWNER/REPO" format for commands that otherwise operate on a local repository. GITLAB_URI: specify the url of the gitlab server if self hosted (eg: gitlab.example.com)
Learn More
Use "glab --help" for more information about a command. Read the documentation at https://clementsam.tech/glab
Contributions
Thanks for considering contributing to this project!
Please read the contibutions guide and Code of conduct .
Feel free to open an issue or submit a pull request!
License
Author
Built with
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
电子邮件营销密码
[美] Jeanniey Mullen、David Daniesl / 薛剑韬 / 人民邮电出版社 / 2009-9 / 39.00元
在当今互联网蓬勃发展的形势下,电子邮件是互联网应用最广的服务之一。那么如何利用其作为有效的营销工具呢?本书系统地讲解了美国电子邮件营销的预算统筹、营销策略、管理模式、执行机制、涉及的技术、营销实施的细节等,其方法有很强的可循性,并可预见将获得的成果。阅读本书之后,读者会深刻感受到电子邮件营销的博大精深,它既是一门扎实严谨的科学,又是一项充满创造力的艺术。. 本书适合企业管理人员及市场营销人员......一起来看看 《电子邮件营销密码》 这本书的介绍吧!