Skip to main content

Module watch

Module watch 

Source

Structs§

WatchArgs

Functions§

clean_cmd_args 🔒
cmd_args 🔒
Returns the env args without the --watch flag from the args for the Watchexec command
end_of_process 🔒
run
Runs the given [watchexec::Config].
setup_process 🔒
watch_build
Executes a [Watchexec] that listens for changes in the project’s src dir and reruns forge build
watch_command 🔒
Converts a list of arguments to a watchexec::Command.
watch_coverage
watch_doc
Executes a [Watchexec] that listens for changes affecting the generated documentation: project sources, optionally library sources, the README that becomes the homepage, the deployments directory, and the foundry config file itself. Without these, the live preview goes silently stale on common edits.
watch_fmt
watch_gas_snapshot
Executes a [Watchexec] that listens for changes in the project’s src dir and reruns forge snapshot
watch_test
Executes a [Watchexec] that listens for changes in the project’s src dir and reruns forge test

Type Aliases§

SpawnHook 🔒