GithubHelp home page GithubHelp logo

chmouel / tkn-watch Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 2.0 2.05 MB

tkn-watch - watch a PipelineRuns on its way to success or failures

License: Apache License 2.0

Rust 67.12% PowerShell 9.02% Shell 13.29% Go 0.22% Dockerfile 0.76% Ruby 3.96% Makefile 1.05% Elvish 4.59%
cli rust tekton-pipelines

tkn-watch's Introduction

Version AUR CICD pre-commit

tkn-watch - watch a PipelineRuns on its way to success or failures

tkn-watch is a simple extension to the tkn command line tool that watches a PipelineRuns and exit with the PipelineRun status.

It mimics the behaviour of GitHub cli run watch command.

Screenshot

tkn-watch screenshot

Demo

Screen.Recording.2022-05-09.at.09.55.49.mov

Installation

Go to the release page and grab the archive or package targeting your platform.

brew tap chmouel/tkn-watch https://github.com/chmouel/tkn-watch
brew install tkn-watch
cargo install tkn-watch

With your favourite aurhelper for example yay :

yay -S tkn-watch-bin
docker run -i ghcr.io/chmouel/tkn-watch # don't forget to bind your kubeconfig

Usage

% tkn watch <pipelinerun-name>

If you don't have tkn cli installed you can call the plug-in directly with tkn-watch

If you don't specify a PipelineRun it will ask you nicely for a running Pipelinerun to watch, auto-selecting one if there is only one running.

When you give the flag -l/--last tkn-watch will use the last PipelineRun started.

You can use the flag -n to specify another namespace than the current one.

You can adjust the time to wait between checks with the flag -r/--refresh-seconds, the default is 3 seconds.

If you don't want a fancy output and just have it reporting quietly success or failure then you can use the -q/--quiet flag for this.

tkn watch exit with the pipelinerun status, so you can do fancy things like (on macOS):

tkn watch -lq || osascript -e 'display notification "PipelineRun Has Failed :("' && osascript -e 'display notification "PipelineRun Has Succeeded, time to commit again :)"'

If you use pipelines-as-code it will detect the headers and show which event and sha this PR targets.

image

Copyright

Apache-2.0

Authors

Chmouel Boudjnah <@chmouel>

tkn-watch's People

Contributors

chmouel avatar dependabot[bot] avatar goreleaserbot avatar ileixe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

vdemeester ileixe

tkn-watch's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.