https://github.com/mattes/gg
Watch file changes and exec commands (YAML + GoLang)
https://github.com/mattes/gg
Last synced: 8 months ago
JSON representation
Watch file changes and exec commands (YAML + GoLang)
- Host: GitHub
- URL: https://github.com/mattes/gg
- Owner: mattes
- Created: 2014-06-04T01:59:20.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-12-21T00:45:15.000Z (about 9 years ago)
- Last Synced: 2025-03-31T18:51:40.063Z (10 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 7
- Watchers: 1
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
GG
==
Watch file changes and exec commands (YAML + GoLang)
### Installation
```
go get github.com/mattes/gg
```
### Usage
Create ``gg.yaml`` file in your working directory.
```yaml
watch:
- pattern: "*.txt"
commands:
hello: "echo hello world, txt"
- pattern: "*.go"
command:
hello: "echo hello world, go"
```
Run ``gg`` afterwards.