roche-rs / roche

A cli for building serverless rust containers
https://roche-rs.org
Apache License 2.0
17 stars 3 forks source link

Add support for watch #3

Open No9 opened 3 years ago

No9 commented 3 years ago

Now there is support for test libraries https://github.com/No9/roche/tree/main/examples/full It would be nice to include a watcher that monitors the project folder and does an auto build-test. This may be possible with a shell using the stat command but it may be a feature that is implemented with the port to native code.

No9 commented 3 years ago

Looking at mdbook implementation https://github.com/rust-lang/mdBook/blob/master/src/cmd/watch.rs#L109 A watch should be put on the src folder and the test code executed.