glp
glp copied to clipboard
Mirror of https://gitlab.com/imn1/glp
GLP
Small CLI tool for fetching Gitlab pipeline states and other info.
How to use
App uses following data sources:
- environment variable
GLP_PRIVATE_TOKEN- your Gitlab personal API token - positional argument "project ID" - Gitlab project ID
pipelines should be fetched for or a
.glpfile with project ID (which makes it the best candidate for your global.gitignorefile when you put the file into your every project)
Example usage
$ GLP_PRIVATE_TOKEN=123 glp 456 # fetches pipelines for project with ID 456
How to install
- clone this repository
- run
cargo install --path=.
or download prebuild binaries for amd64
here.
Changelog
0.1.2
- space between pipelines added
- added
-fparam for "finished at" info for each pipeline - added internal remaphore to prevent Gitlab flood
- code structured to modeles
0.1.1
-cparam for setting the number of pipelines on output (instead of fixed 3)- pipeline total run time added
0.1.0
- initial release
TODO
- error handling + comfy error outputs
- ~
-cparam for setting the number of pipelines on output (instead of fixed 3)~