We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 391f785 commit aced9b1Copy full SHA for aced9b1
rewatch/src/watcher.rs
@@ -92,6 +92,20 @@ async fn async_watch(
92
}
93
94
for event in events {
95
+ // if there is a file named rewatch.lock in the events path, we can quit the watcher
96
+ if let Some(path) = event.paths.iter().find(|path| path.ends_with("rewatch.lock")) {
97
+ match event.kind {
98
+ EventKind::Remove(_) => {
99
+ if show_progress {
100
+ println!("\nExiting... (lockfile removed)");
101
+ }
102
+ clean::cleanup_after_build(&build_state);
103
+ return Ok(());
104
105
+ _ => (),
106
107
108
+
109
let paths = event
110
.paths
111
.iter()
0 commit comments