Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delay on detect change #14

Open
supafoundation opened this issue Feb 14, 2018 · 1 comment
Open

delay on detect change #14

supafoundation opened this issue Feb 14, 2018 · 1 comment

Comments

@supafoundation
Copy link

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

@kataras
Copy link
Owner

kataras commented Feb 14, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants