It rebuilds the Go source. "embed" was implemented from Go1.16, and I wanted to reload HTTP server template.
go install github.com/secondarykey/skewer/_cmd/skewer
You should able to "skewer" command in "GOBIN" or "GOPATH/bin".
Take an argument to build the Go source.
skewer main.go
skewer *.go
skewer .
skewer _cmd/main.go
Please read Help for details.(Not implemented...
you can also loop the test.
skewer -m test .
Maybe it's a subcommand...
(e.g.
skewer http _cmd/main.go
skewer test ./...
It usually looks for "go.mod" and monitors and builds all directories under it. If there is an updatei in the monitored directories,it will be rebuild and the process will be starter.
Build temporarily and create a binary file to make the build error easier to understand and process status easier to understand.
At the beginning of development, it was realized as a proxy server, but I realized that it was not necessary and deleted it.
I will write a memo for development.
-t Change the directory to monitor
-a Specifying arguments when stating a process.(and TestMode)
-d Monitoring lap time(default 5s)