Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teamwork/watcher
Watcher for restarting your project when any changes are made.
https://github.com/teamwork/watcher
go golang tooling watcher
Last synced: about 1 month ago
JSON representation
Watcher for restarting your project when any changes are made.
- Host: GitHub
- URL: https://github.com/teamwork/watcher
- Owner: Teamwork
- License: mit
- Created: 2019-07-20T11:34:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-18T15:30:10.000Z (over 3 years ago)
- Last Synced: 2024-09-28T22:40:56.368Z (about 2 months ago)
- Topics: go, golang, tooling, watcher
- Language: Go
- Homepage:
- Size: 33.2 KB
- Stars: 2
- Watchers: 40
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
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
```bash
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:
```