gomon is a tiny tool that runs a go program and watch changes on it.
gomon was originally a fork of rld
Clone the git repository and build:
$ git clone https://github.com/h4ckitt/gomon
$ cd gomon
$ make release
Or install go binary:
$ cd gomon
$ go install github.com/h4ckitt/gomon@latest
Show help text:
$ gomon -h
gomon
can watch for changes in file and directories
- file:
$ gomon cmd/main.go
- file with positional arguments:
$ gomon cmd/main.go --arg1 --arg2 1 2 3 4
- project:
$ gomon path/to/project/dir
If gomon
is called without arguments, it assumes the current directory is a project directory.
- Linux
- MacOS
- Windows
Contributions are very much welcome, anyone can create a PR with a fix for any of the following issues:
- Kill Previous Running Processes Before Starting A New One
- Make Killing Of Previous Process Work In Windows
- Let Users Specify Which Files To Ignore In Project Mode
- Watch For Changes In Project Directory (File Creation/Deletion/Rename)
- Fix Bugs That Stealthily Slipped From Me But Not You