joh / when-changed

Execute a command when a file is changed
Other
1.21k stars 107 forks source link

Fix issues #68 and #76 #77

Closed eviweb closed 7 months ago

eviweb commented 5 years ago

Keep track of the last event to prevent a created event to be followed by a modified event.

Take care of the on_change method signature that now takes an optional event argument. This is a backward compatible change as the argument is optional and has a default value. I made this choice to propose a better code design and a better readability.

best regards

joh commented 7 months ago

Closing as this PR seems stale. Feel free to reopen if you plan on moving forwards with it :)