Executes commands in response to file modifications
APACHE-2.0 License
Bot releases are visible (Hide)
Published by passcod over 2 years ago
--restart
(#346, #353)--signal
with --restart
(#353)-v
(info) more useful with actual, but sparse, information (#260, #354)Published by passcod over 2 years ago
--help
warnings when running or building with non-standard options (#348)--exts
, as a "path fragment") (#345, #349, #350)Published by passcod over 2 years ago
Yanked on 2022-06-29
-E
flag would accept but silently discard invalid UTF-8, now watchexec errors on such input. (#317)--log-file
option makes it easier to collect logs without polluting the screen. (#321)--delay-run
option adds a configurable sleep before running the command. A native, cross-platform alternative to sleep N; command...
! (#79)Additionally, some repo changes:
main
is not allowed.Not directly related to the CLI, but the library 2.0.0 version has now been released as stable! Full semver applies again.
Known issue with some packages: DEB and RPM packages may be missing dependencies due to being auto-generated instead of lovingly handcrafted. Prefer distributions from packagers rather than these ones, which are just provided on an ad-hoc, if convenient, as-is, basis.
Published by passcod over 2 years ago
--shell
default will be changing on Unix (#210).--project-origin
provides an override which can be useful when the project origin is misdetected, or if you want to stop watchexec from looking for ignore files in (some) parent directories (#246).--workdir
sets the command's working directory independent of Watchexec's.--env
(short: -E
) adds environment variables to the command without affecting Watchexec itself.Published by passcod over 2 years ago
Published by passcod over 2 years ago
Published by passcod over 2 years ago
Published by passcod over 2 years ago
.
when no -w
are passed. (#270)Published by passcod over 2 years ago
Published by passcod over 2 years ago
Revert backend switch on mac from previous release. We'll do it a different way later (#269)
Published by github-actions[bot] over 2 years ago
-v
logs=
) requirement, to avoid breakage*_PATH
variables (#262)Published by passcod over 2 years ago
Watchexec::new()
now reports the library's version at debug level=
) requirement, to avoid breakage (#266)Published by github-actions[bot] over 2 years ago
*/file
filters matching file
(1.17 compat) on unix. Note that this is incorrect behaviour that will go away for real in 2.0.--exts
and --filter
(1.17 compat). This will stay.Published by passcod over 2 years ago
error::FsWatcherError
enum split off from RuntimeError
, and with additional variants to take advantage of targeted help text for known inotify errors on Linuxextensions
and filters
are now cooperative rather than exclusionary. That is, a filters of ["Gemfile"]
and an extensions of ["js", "rb"]
will match both Gemfile
and index.js
rather than matching nothing at all. This restores pre 2.0 behaviour.*/file
will match both file
and dir/file
instead of just dir/file
. This is a compatibility fix and is incorrect behaviour which will be removed in the future. Do not rely on it.Published by github-actions[bot] over 2 years ago
WATCHEXEC_*_PATH
s are deduplicated (#253).git
folders (and so on for other VCS) are ignored by default regardless of whether the watched project is detected as Git (and so on).Published by passcod over 2 years ago
on_error
handler gets an upgraded parameter which lets it upgrade (runtime) errors to critical.summarize_events_to_paths
now deduplicates paths within each variable.Published by github-actions[bot] over 2 years ago
--on-busy-update=queue
mode no longer prevents watchexec from quitting with Ctrl-C (#247)Published by passcod over 2 years ago
Action
, PreSpawn
, and PostSpawn
structs passed to handlers now contain an Arc<[Event]>
instead of an Arc<Vec<Event>>
Outcome
processing (the final bit of an action) now runs concurrently, so it doesn't block further event processing (#247, and to a certain extent, #241)Published by github-actions[bot] over 2 years ago
Published by passcod over 2 years ago