Executes commands in response to file modifications
APACHE-2.0 License
Bot releases are visible (Hide)
Published by github-actions[bot] over 3 years ago
clearscreen
which is a comprehensive terminal/console screen clearing library. Eventually this will be used here, for now it needs a little time to settle and get properly tested around a bunch of terminals and setups (and you can help!). However, its API is stable and it is fully documented, so please consider it for new projects!Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
arm-unknown-linux-gnueabihf
and aarch64-unknown-linux-gnu
builds.--changes-only
option to print what changes (for debugging purposes, not for consuming).--shell=SHELL
and deprecate --no-shell
.--shell=powershell
), which solves #80. On Windows, powershell will become the CLI default in v2.0, and is the new default right now in the library.--kill
from the man page, help, and completion. It will be removed in v2.0.Args
is renamed to Config
and the old name deprecated.get_args
is deprecated in the view to be removed at some point (and only exist in the CLI).restart
and watch_when_idle
are deprecated and replaced with on_busy_update
which clarifies the behaviour when receiving updates while a command is running.--on-busy-update=
option to expose that builder option.--watch-when-idle
(ref #123) in favour of --on-busy-update=do-nothing
.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.
Published by passcod about 6 years ago
My bad. My changes related to whitespace handling completely broke several use cases, e.g.:
watchexec -- 'echo foo; echo bar'
See discussion on #82.
This release reverts (comments out) those parts, but keeps everything else.
1: Other changes were added following this to convert more panics into normal errors: some glob parsing errors, and file watcher initialisation errors.
2: These changes also cause a breaking changes to the library interface, but this is not considered in the version numbers (i.e. if you use it, pin it). From cursory investigation only cargo-watch is a consumer and changes there in consequence are coordinated.
First release by @passcod! This release is merging in a variety of long-waiting improvements, but is otherwise fairly conservative.
WATCHEXEC_*_PATH
environment variables are now accurately documented โ docsPublished by mattgreen about 7 years ago
Published by mattgreen about 7 years ago
Published by mattgreen over 7 years ago