lab

command module
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2017 License: Unlicense Imports: 2 Imported by: 0

README

git + lab = gitlab Build Status Go Report Card codecov

lab wraps git or hub and adds additional features to make working with GitLab smoother

$ lab clone gitlab-com/infrastructure

# expands to:
$ git clone git@gitlab.com:gitlab-com/infrastructure

hub + lab = hublab??

lab will look for hub and uses that as your git binary when available so you don't have to give up hub to use lab

$ lab version
git version 2.11.0
hub version 2.3.0-pre9
lab version 0.5.2

Inspiration

The hub tool made my life significantly easier and still does! lab is heavily inspired by hub and attempts to provide a similar feel.

Installation

Dependencies

  • git or hub
Homebrew
brew install zaquestion/tap/lab
Source

Required

$ go get -u github.com/zaquestion/lab

$ lab version
git version 2.11.0
lab version 0.5.2

Configuration

The first time you run lab it will prompt for your GitLab information. All configuration is managed through git config so don't worry if you mess it up. Keys can be set at the system, global, or local level.

$ lab
Enter default GitLab host (default: https://gitlab.com):
Enter default GitLab user: zaq
Enter default GitLab token:

Relevant lab git config keys:

  • gitlab.host
  • gitlab.user
  • gitlab.token

Aliasing

Like hub, lab feels best when aliased as git. In your .bashrc or .bash_profile

alias git=lab

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
git
gitlab
Package gitlab is an internal wrapper for the go-gitlab package Most functions serve to expose debug logging if set and accept a project name string over an ID
Package gitlab is an internal wrapper for the go-gitlab package Most functions serve to expose debug logging if set and accept a project name string over an ID

Jump to

Keyboard shortcuts

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