gitlabpls

command module
v0.0.0-...-50302b0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: MIT Imports: 6 Imported by: 0

README

gitlabpls

GitLab, please! A CLI tool to help you run new GitLab CI/CD pipeline. It generates new GitLab pipeline URL with configurable set of pipeline variables, so you don't have to type them again and again.

How to configure and install

  1. Clone this repo

  2. Head to gitlabpls.config.toml for configs. Place your pipeline variables under vars.<your own vars key> and the app will turn them into commands ✨

    For example:

    [vars.myvariables]
    ENV = "dev"
    GIT_BRANCH = "${GIT_HEAD}"
    

    The variables defined within vars.myvariables can be used with gitlabpls [u/b] myvariables.

    The value supports ${GIT_HEAD} placeholder which will be automatically replaced by the app with git HEAD branch of the working directory.

  3. Run go install to build binary and install it to $GOPATH/bin

    Note: you need to do this step every time the config changes because the config file is embedded within the binary.

  4. Run gitlabpls -v to check if it's installed correctly

Usage

$ gitlabpls help

USAGE:
   gitlabpls [global options] command [command options] [arguments...]

VERSION:
   1.0.0

COMMANDS:
   url, u      generate URL
   browser, b  generate URL and open it in your browser

GLOBAL OPTIONS:
   --help, -h     show help (default: false)
   --version, -v  print the version (default: false)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
app
pkg

Jump to

Keyboard shortcuts

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