Watch file changes and exec commands (YAML + GoLang)
go get github.com/mattes/gg
Create gg.yaml
file in your working directory.
watch:
- pattern: "*.txt"
commands:
hello: "echo hello world, txt"
- pattern: "*.go"
command:
hello: "echo hello world, go"
Run gg
afterwards.