Commit Graph

13 Commits

Author SHA1 Message Date
Félix Saparelli
05e66784ce
Apply clippy recommendations 2021-04-11 05:44:24 +12:00
Félix Saparelli
1b5bdee08e
Make terminology more consistent and avoid some "kill child" usages 2021-04-11 03:21:38 +12:00
Félix Saparelli
757de0d92e
Use ArgsBuilder ourselves 2021-04-11 01:09:06 +12:00
Félix Saparelli
f38e7ab969 Cargo fmt 2020-07-04 00:20:02 +12:00
Quint Guvernator
2615a1de7c wrap ioerror when it represents oserror E2BIG 2020-06-24 13:40:11 +02:00
Félix Saparelli
a3c5bd7201
Run formatter 2019-10-28 00:31:52 +13:00
Félix Saparelli
d47419e385
Forbid a whole lot more clippy stuff 2019-10-28 00:31:26 +13:00
Félix Saparelli
b842c149b6
Use Rust 2018 2019-10-27 23:58:00 +13:00
Josh Gao
6342f86c10 [errors] Fix infinite recursion in fmt::Display for Error (#111) 2019-02-15 17:02:07 +13:00
Félix Saparelli
aae5a216b0 [api] Make watchexec take a Handler rather than a callback
Instead of special-casing the callback, which is the path least-taken,
switch the internals to a Handler model, where the default behaviour is
an implementation of a Handler, and external callers can implement their
own Handlers and pass them in.

While doing so, change all unwraps in run::run to returning Errs, and
expand the watchexec Error enum to accommodate. That should make it
easier to use as a library.

Also, differentiate between "manual" and "on update" runs. For now the
only manual run is the initial run, but this paves the way for e.g.
keyboard- or signal- triggered runs.
2019-01-26 14:45:13 +13:00
Félix Saparelli
f6b16813aa Cfg off remaining items for a clean win/mac build
Closes #98
2018-10-05 20:56:06 +13:00
Félix Saparelli
3c1eaa51f7 Add missing impl for StdError 2018-09-09 10:38:07 +12:00
Félix Saparelli
2c5c145042 Extract errors into one thing and return a result more often 2018-09-08 23:51:44 +12:00