watchdock

Crates.iowatchdock
lib.rswatchdock
version0.1.0
sourcesrc
created_at2024-09-23 15:56:22.527416
updated_at2024-09-23 15:56:22.527416
descriptionTrigger a build inside a build container (e.g. using cargo-watch), then optionally run another command outside the container when the inner build command succeeds.
homepage
repositoryhttps://github.com/H4ld-London/watchdock.git
max_upload_size
id1384251
size37,859
(h4ld00m)

documentation

README

watchdock

Trigger a build inside a build container (e.g. using cargo-watch), then optionally run another command outside the container when the inner build command succeeds.

Inside your build container (with --volume ./target/watchdock:/run/watchdock):

cd /src
watchdock listen /run/watchdock/sock cargo build

Then outside your container:

cargo watch -s "watchdock trigger-run ./target/watchdock/sock echo 'DONE - now do my useful thing'"
Commit count: 3

cargo fmt