lab

command module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2018 License: MIT Imports: 12 Imported by: 0

README

lab

Build Status Coverage Status

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

Features

Usage: lab [--version] [--help] <command> [<args>]

Available commands are:
    browse           Browse repository page
    issue            Create and Edit, list a issue
    lint             validate .gitlab-ci.yml
    merge-request    Create and Edit, list a merge request
    pipeline         List pipeline, List pipeline jobs
    project          Show project
    user             Show pipeline

Usage

  1. change directory gitlab repository
    • lab command accesses gitlab quickly by useing repository infomation
    $ cd {gitlab repository}
    
  2. laucn lab command
    $ lab issue
    
  3. 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
git

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL