Félix Saparelli
60fa09182d
Docs: watchexec
2021-10-17 03:01:55 +13:00
Félix Saparelli
75243bfdad
Rename Signal to MainSignal
...
in preparation for another signal type
2021-10-16 01:13:16 +13:00
Félix Saparelli
8e4994abca
Add process supervisor to watch command to completion
...
Also change the concept of a completion handler to instead sending a
synthetic "process completed" event down the same path as usual.
That makes handling completion the job of the action handler, but also
means it's immediately possible to launch a process or do an action in
response to the process completing. Win win!
2021-09-03 05:22:15 +12:00
Félix Saparelli
33fb691d29
Add method to insert events into watchexec manually
2021-08-24 22:20:44 +12:00
Félix Saparelli
4a9168f5e6
Log on graceful exit
2021-08-23 03:36:10 +12:00
Félix Saparelli
b42336cb74
Actually watch files in example
2021-08-23 03:11:58 +12:00
Félix Saparelli
5314d201a4
Expand print_out example into watchexec test case
2021-08-23 02:36:58 +12:00
Félix Saparelli
17b09d8798
Add graceful exit support
2021-08-23 02:32:08 +12:00
Félix Saparelli
f4a8a9fc6a
Print PID in initialisation
2021-08-23 02:30:56 +12:00
Félix Saparelli
18d2487ec3
Rename reconfig to reconfigure
2021-08-23 00:31:39 +12:00
Félix Saparelli
2a0661b122
Call action handler on action
2021-08-22 05:58:03 +12:00
Félix Saparelli
f2f138ce9f
Add logging to Watchexec
2021-08-22 02:53:20 +12:00
Félix Saparelli
019018c93e
Add docs for error_handler as it's a bit tricky
2021-08-21 22:30:19 +12:00
Félix Saparelli
816313303a
Finish handlers by implementing the error hook
2021-08-21 20:46:44 +12:00
Félix Saparelli
0f37e42243
Add action worker
2021-08-21 04:43:55 +12:00
Félix Saparelli
6a46c2bff3
Refactor watchexec to only have &self methods and default to wrap it in Arc
2021-08-20 02:55:34 +12:00
Félix Saparelli
249c581dc9
Make channel buffers configurable
2021-08-19 21:28:56 +12:00
Félix Saparelli
0bb38f40a5
Start off on main interface
2021-08-19 01:12:50 +12:00