Skip to content

creachadair/tea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tea

GoDoc

This repository contains a tool that triggers actions based on patterns in its input. It is analogous to a combination of tee and grep, with the addition that it can execute an external program in response to matches on the input.

This can be useful for watching log output from a long-running program for certain interesting patterns, e.g.,

bundle exec jekyll serve |
   tea \
    -- 'Regenerating:' say "Rebuilding your site" \
    -- '\bdone in (\d+\.\d)\d* seconds' say 'Build complete after $1 seconds'

Installation

go install github.com/creachadair/tea@latest

About

A tool to trigger actions on pattern matches of its input

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages