Commit Graph

213 Commits

Author SHA1 Message Date
Félix Saparelli
72cda2b0b0
Make sure to kill the old command group before starting a new one 2021-07-21 21:42:55 +12:00
Félix Saparelli
9c20c8c8b5 Replace process code with command-group 2021-07-21 20:22:40 +12:00
Félix Saparelli
4d6ad2cc1f
Use website as source for docs logo 2021-07-20 20:32:38 +12:00
Félix Saparelli
847520357c
Rename ignore test fns 2021-07-17 01:33:39 +12:00
Félix Saparelli
585f73adde Poll process completion harder on windows 2021-07-10 03:43:21 +12:00
Félix Saparelli
71a178d4c2 Actually check process when querying for completion
With --on-update=do-nothing, we need to know when the process is done
before we can spawn a new one, but we never actually used to truly check
the process, only the presence or absence of a spawned process. That
process may have already completed, but because we don't wait on it when
in do-nothing mode, there is no opportunity to notice this.

So now we either actually check the completion status of the process (on
Windows), or we expose the `done` mutex value on demand (Unix).
Essentially this adds a way to check the completion status of the
process without blocking (modulo a mutex lock on unix).

Fixes #200
2021-07-10 03:43:21 +12:00
Félix Saparelli
d8540d76b8
Fomat and clippy 2021-05-10 23:37:03 +12:00
Félix Saparelli
148be31f65
Add a stub to the watchexec (lib) crate to point to the watchexec-cli crate 2021-05-09 01:19:50 +12:00
Félix Saparelli
8295ac7a1c Don't fail CI on clippy warnings 2021-05-08 19:22:35 +12:00
Félix Saparelli
6aebd9b3e7 Formatting 2021-05-08 19:12:13 +12:00
Félix Saparelli
07f56ac7d5
Refactor inotify max watches warning to be less nested and satisfy clippy better 2021-05-08 19:07:56 +12:00
Félix Saparelli
aeab4159d4
Change semver policy for the library 2021-05-01 03:56:16 +12:00
Félix Saparelli
1f3f4ada35 Split into two crates: lib and cli
That has a number of advantages:

- #193 the build.rs is only run for the CLI, so the Windows manifest is
  not embedded in the library anymore, opening it up for downstreams.

- it sets the stage for decoupling the version numbers of the CLI and
  library, to have the library increase its major more often, while the
  CLI retains compatibility further… that is, to have both follow semver

- it removes the CLI-only dependencies from the library

- it makes compilation a bit faster as compiling the library and the
  CLI's other dependencies can happen in parallel

One major disadvantage:

- installing via cargo changes from watchexec to watchexec-cli. Most
  installs are from prebuilt and from packages, but that's still a
  potential stumble.

And of course, the CLI APIs in the library are gone (they were already
deprecated, though).

We also take this opportunity to get rid of the clear_screen code and
use our new clearscreen library. #99 #171 #185
2021-05-01 03:27:17 +12:00