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

Last update: May 14, 2022

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

Binaries

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

Homebrew

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

Crates.io

cargo install tkn-watch

Arch

With your favourite aurhelper for example yay :

yay -S tkn-watch-bin

Docker

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 -l || 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>

GitHub

https://github.com/chmouel/tkn-watch
You might also like...

Terminal UI for erhanbaris/smartcalc, a new way to do calculations on-the-fly

Terminal UI for erhanbaris/smartcalc, a new way to do calculations on-the-fly

smartcalc-tui Terminal UI for erhanbaris/smartcalc, a new way to do calculations on-the-fly. From the README: Do your calculation on text based querie

Apr 29, 2022

A tool of generating and viewing dice roll success distributions.

AZDice A GUI tool for generating and visualising dice roll probability distributions. Aims Intended to help people trying to get game balance just rig

Mar 2, 2021

7-day Roguelike, 2021 (Success)

SecBot - 7 Day Roguelike Challenge (2021) Play in your Browser. Chrome, Firefox or similar recommended. It's also published on itch.io. A tutorial ser

Dec 18, 2021

A crate to convert bytes to something more useable and the other way around in a way Compatible with the Confluent Schema Registry. Supporting Avro, Protobuf, Json schema, and both async and blocking.

A crate to convert bytes to something more useable and the other way around in a way Compatible with the Confluent Schema Registry. Supporting Avro, Protobuf, Json schema, and both async and blocking.

#schema_registry_converter This library provides a way of using the Confluent Schema Registry in a way that is compliant with the Java client. The rel

May 19, 2022

Learn-rust-the-hard-way - "Learn C The Hard Way" by Zed Shaw Converted to Rust

Learn Rust The Hard Way This is an implementation of Zed Shaw's Learn X The Hard Way for the Rust Programming Language. Installing Rust TODO: Instruct

May 16, 2022

CLI app to display list of trending anime, music charts or recommend anime to watch or song to listen to.

Description Anitrendz is a cli app that uses data from the anitiop api to list the top anime and songs or recommend a random anime to watch or song to

Dec 30, 2021

tri-angle trader without trade, just watch pair's price change, print arbtrage chance.

tri-angle trader without trade, just watch pair's price change, print arbtrage chance.

Dec 20, 2021

A Tauri Plugin to watch the filesystem for changes

Tauri Plugin FSWatch This plugin provides a "classical" Tauri Plugin Interface to watch changes on files and directories through notify. Architecture

May 17, 2022

A modern alternative to watch command

A modern alternative to watch command

A modern alternative to watch command

Jan 11, 2022

Watch output and trigger on diff!

watchdiff Watch output and trigger on diff! Ever want to have watch output only tell you what changed? And not only what, but when? Now you can! Enter

Apr 6, 2022

Watch classic spongebob from the terminal

Watch classic spongebob from the terminal

Watch classic spongebob from the terminal! Remake of the original spongbob cli written in py by TrakBan

Feb 22, 2022

A Telegram bot to watch animes

AmimeWatch A Telegram bot to watch animes. Re-written version of AmimeWatch in Rust. Preparing Configuration Create a file named config.toml and fill

May 5, 2022

Detects usage of unsafe Rust in a Rust crate and its dependencies.

Detects usage of unsafe Rust in a Rust crate and its dependencies.

cargo-geiger ☢️ A program that lists statistics related to the usage of unsafe Rust code in a Rust crate and all its dependencies. This cargo plugin w

May 24, 2022

mee6 but its foss

mee6 leveling clone but its free and open source stuff u need: rust + cargo postgres redis discord bot token use the thing: setup stuff in .env build

Aug 15, 2021

CLI utility to move (or rename) your files to a new location and redirect all of its symbolic links, to the new path

Move Links CLI utility to move (or rename) your files to a new location and redirect all of its symbolic links, to the new path (or name). Usage execu

May 22, 2022

Akasio is a simple HTTP server that redirects traffic based on a JSON redirect table. This is its Rust implementation.

This page is inaccurate and is pending updates. Akasio (Rust) Description Akasio is a simple HTTP server that redirects traffic based on a JSON redire

May 2, 2022

Detects usage of unsafe Rust in a Rust crate and its dependencies.

Detects usage of unsafe Rust in a Rust crate and its dependencies.

cargo-geiger ☢️ A program that lists statistics related to the usage of unsafe Rust code in a Rust crate and all its dependencies. This cargo plugin w

May 16, 2022

miette is a diagnostic library for Rust. It includes a series of traits/protocols that allow you to hook into its error reporting facilities, and even write your own error reports!

miette is a diagnostic library for Rust. It includes a series of traits/protocols that allow you to hook into its error reporting facilities, and even write your own error reports!

miette is a diagnostic library for Rust. It includes a series of traits/protocols that allow you to hook into its error reporting facilities, and even write your own error reports!

May 17, 2022

Midnote is a terminal application that reads a MIDI file and displays you its notes bar-by-bar, while playing it.

MIDNOTE Midnote is a terminal application that reads a MIDI file and displays you its notes bar-by-bar, while playing it. Goals As a blind musician my

May 17, 2022
Comments
  • 1. Add a nix flake for tkn-watch

    This allow to run things tkn-watch like nix run github:chmouel/tkn-watch -- --help. It also provides packages for other to integrate with their flake configuration / nix derivation.

    nix develop drops you in a development environment with everything needed. nix flake check runs all the tests (fmt, cargo test, …)

    Signed-off-by: Vincent Demeester [email protected]

    Reviewed by vdemeester at 2022-05-13 09:46
Watch output and trigger on diff!

watchdiff Watch output and trigger on diff! Ever want to have watch output only tell you what changed? And not only what, but when? Now you can! Enter

Apr 6, 2022
Black-box integration tests for your REST API using the Rust and its test framework

restest Black-box integration test for REST APIs in Rust. This crate provides the [assert_api] macro that allows to declaratively test, given a certai

Apr 4, 2022
🤖 just is a handy way to save and run project-specific commands.

just just is a handy way to save and run project-specific commands. (非官方中文文档,这里,快看过来!) Commands, called recipes, are stored in a file called justfile

May 25, 2022
The dead easy way to use config files in your rust project

Configr The dead easy way to use config files in your project This will load a config.toml file if it exists, otherwise it will create the needed fold

May 27, 2021
Voila is a domain-specific language launched through CLI tool for operating with files and directories in massive amounts in a fast & reliable way.

Voila is a domain-specific language designed for doing complex operations to folders & files. It is based on a CLI tool, although you can write your V

Apr 24, 2022
⚡️ A blazing fast way of maintaining powerful notes with connections between them.
 ⚡️ A blazing fast way of maintaining powerful notes with connections between them.

Zettl ⚡️ A blazing fast way of maintaining powerful notes with connections between them. Installing Zettl To install Zettl, you will need the Rust too

May 21, 2022
Irx-config - The library provides convenient way to represent/parse configuration from different sources

The irx-config library provides convenient way to represent/parse configuration from different sources. The main goals is to be very easy to use and t

Dec 31, 2021
Oxygen is a voice journal and audio analysis toolkit for people who want to change the way their voice comes across.

Oxygen Voice Journal Oxygen is a voice journal and audio analysis toolkit for people who want to change the way their voice comes across. Or rather, i

Apr 26, 2022
The-way - A code snippets manager for your terminal.
The-way - A code snippets manager for your terminal.

The Way A code snippets manager for your terminal. Record and retrieve snippets you use every day, or once in a blue moon, without having to spin up a

May 18, 2022
A handy way to handle sh/bash cli parameters
A handy way to handle sh/bash cli parameters

Argc A handy way to handle sh/bash cli parameters. How Argc works To write a command line program with Argc, we only need to do two things: Describe t

May 9, 2022