🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

gitlab.com/theuberlab/sightflow

Package Overview
Dependencies
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitlab.com/theuberlab/sightflow

Source
Go Modules
Version
v0.9.8
Version published
Created
Source

Pipeline Status coverage GoDoc Go Report Card License: GPL v3 pkg.go.dev

SightFlow - The Gitlab Command Line Pipeline Watcher

A small tool which will allow you to easily view the status of your gitlab pipelines.

About

This is a small command line utility to address a couple of issues watching Gitlab pipelines. sightflow will get the status of the latest pipeline then continually review and update the status of all jobs for that pipeline.

sightflow

Installation

  • Clone this repo
  • go build -o sightflow ./cmd/main.go
  • move sightflow into your path somewhere.

Altertatively download a pre-compiled binary for your favorite platform:

Linux: Download

MacOS: Download

Windows: Download

Usage

At minimum sightflow requires a project ID to check.

./sightflow -p 12345

If the project in question is private sightflow requires a Gitlab access token with API permissions. This should be set in the environment variable 'GITLAB_API_TOKEN'.

If your project is hosted on a provate instance of gitlab, sightflow requires the full url including scheme (and port if non-standard.)

./sightflow -p 12345 -u https://gitlab.theuberlab.com

Run sightflow -h for usage.

$ sightflow -h
usage: Gitlab Pipeline Watcher --project-id=PROJECT-ID --gitlab-token=GITLAB-TOKEN [<flags>]

Watch the status of your pipelines.

Flags:
  -h, --help                   Show context-sensitive help (also try --help-long and --help-man).
      --version                Show application version.
      --log-utc                Timestamp lug.Log messages in UTC instead of local time. Can be set via sightflow_LOG_UTC
  -l, --logLevel=Error         The level of lug.Logging to use. Can be set via sightflow_LOG_LEVEL
  -f, --logformat=logfmt       What output format to use. Can be set via sightflow_LOG_FMT
  -p, --project-id=PROJECT-ID  Specify the numeric project ID to check the status of.
  -u, --gitlab-url="https://gitlab.com"  
                               Specify the url of the the gitlab instance to connect to. Can be set via the environment variable
                               GITLAB_URL.
  -t, --gitlab-token=GITLAB-TOKEN  
                               Specify the token to use to authenticate curl requests. NOTE: use the environment variable
                               GITLAB_API_TOKEN instead.
  -i, --interval=2             The refresh interval in seconds

Known issues

There is very little checking of error conditions. Situations like specifying a project ID that doesn't exist simply result in a pointer error.

May or may not work on Windows.

Future

The ability to specify a list of jobs to report on instead of all. The ability to specify a job for which sightflow will retun the logs for.

FAQs

Package last updated on 22 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts