Categorygithub.com/teamwork/watcher
repositorypackage
1.0.4
Repository: https://github.com/teamwork/watcher.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

watcher

A watcher that doesn't care about GOPATH, or anything really, just watches some paths and run

Installation

go get github.com/teamwork/watcher/cmd/watcher

Usage

watcher go run ./cmd/someservice

The example above will watch any file changes with the default matcher on current working dir

Defaults

Match: (?:go\.mod|\.(?:go|tmpl))$
Exclude: ^vendor/
Paths: current working dir

New

Support for setting ENV vars from .env files

$ echo "HELLO=world" > .env
$ watcher sh -c 'echo $HELLO'

(watcher) run triggered...
world
(watcher) process interrupted: <nil>