Executes commands in response to file modifications
APACHE-2.0 License
Bot releases are hidden (Show)
Published by passcod almost 3 years ago
Published by passcod almost 3 years ago
Published by passcod almost 3 years ago
paths::PATH_SEPARATOR
is now public, being :
on Unix and ;
and Windows.Published by passcod almost 3 years ago
summarise_events_to_env
used to return COMMON_PATH
, it now returns COMMON
, in keeping with the other variable names.Published by passcod almost 3 years ago
summarise_events_to_env
returns a HashMap<&str, OsString>
rather than HashMap<&OsStr, OsString>
, because the expectation is that the variable names are processed, e.g. in the CLI: WATCHEXEC_{}_PATH
. OsStr
makes that painful for no reason (the strings are static anyway).Action
struct's events
field changes to be an Arc<Vec<Event>>
rather than a Vec<Event>
: the intent is for the events to be immutable/read-only (and it also made it easier/cheaper to implement the next change below).PreSpawn
and PostSpawn
structs got a new events: Arc<Vec<Event>>
field so these handlers get read-only access to the events that triggered the command.Published by passcod almost 3 years ago
==
and !=
are case-insensitiveFileType
ProcessEnd
(ExitStatus
replacement)Published by passcod about 3 years ago
Published by passcod over 3 years ago
use_process_group
(default true
) allows disabling use of process groups.cargo install watchexec
stub removed.Published by passcod over 3 years ago
Published by passcod about 4 years ago
Args.debug
as it's not used any more.-w
can be used to watch files as well as folders.Published by passcod over 4 years ago
WATCHEXEC_*
environment variables instead of throwing a cryptic message ("Argument list too long")--no-environment
to disable the WATCHEXEC_*
variables being set, to avoid the above situation completely.--no-meta
to disable only "metadata" events from being reported as above, which mitigates the above situation.watchexec = "=1.14.0"
.Published by passcod over 4 years ago
Published by passcod over 4 years ago
notify
(patch), globset
(patch), clap
(patch), nix
(major: 0.15 → 0.17)Published by passcod almost 5 years ago
-i foo
now matches the foo
folder and descendants, instead of having to specify -i foo/**
--watch-when-idle
option that ignores events emitted while the command is running. This may help ignore changes made by the command itself (#40), though it of course also ignores all other changes during that time.Published by passcod almost 5 years ago
Published by passcod almost 5 years ago
.ignore
files (#127)Args
(#135)Handler
trait (#133)--locked
for reproducibility (#131)Published by passcod about 5 years ago
--
(#125)Published by passcod over 5 years ago
Published by passcod over 5 years ago
The API now enables:
Args
This also has creates two minor breaking changes:
Args
's paths
field is now a Vec<PathBuf>
rather than a Vec<String>
cli::get_args()
returns a Result
rather than nothingThis was done in #105, prompted by #104 and #103.
This formalises the fix to #76.
Through setsid, thanks to @Mange (#102).
Fixes #47 and some other issues downstream.
These are hard to guess at / repro. Maybe it helped #99.
As part of the API changes, file-triggered runs and manual runs are now explicitly differentiated, which will help when eventually implementing #67.