Open supafoundation opened 6 years ago
rizla -delay=5s main.go
for example, it will wait 5 seconds for reload and will also skip any changes that will happen in that time in order to not build two executable in the same or near to time, file changer works concurrently.
You can use ms
as well, so maybe -delay=250ms
is a better option for your needs, play with these, for more details on what string you can pass for a duration check here: https://golang.org/pkg/time/#ParseDuration
You can also pass arguments to your program(s), example: https://github.com/kataras/rizla/blob/master/_examples/main.go as requested at rizla issue 13.
To support sftp programs where it uploads the files remotely. To prevent EOF error.