kataras / rizla

:eyes: Rizla builds, runs and monitors your Go Applications with ease. See https://github.com/kataras/iris-cli for Iris users.
MIT License
190 stars 17 forks source link

delay on detect change #14

Open supafoundation opened 6 years ago

supafoundation commented 6 years ago

To support sftp programs where it uploads the files remotely. To prevent EOF error.

kataras commented 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.