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.

Screencast

https://user-images.githubusercontent.com/98980/167255324-d1c16973-df5f-473a-9285-2b7422840dd8.mov

Installation

Binaries

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

Homebrew

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

Crates.io

shell cargo install tkn-watch

Arch

With your favourite aurhelper for example yay :

shell yay -S tkn-watch-bin

Usage

shell % tkn-watch <pipelinerun-name>

If you don't specify a PipelineRun it will ask you nicely for a running Pipelinerun to watch.

If you specify the flag -l/--last it will watch the last PipelineRun started in namespace.

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.

Copyright

Apache-2.0

Authors

Chmouel Boudjnah <@chmouel>