Crates.io | monzilla_rs |
lib.rs | monzilla_rs |
version | 1.0.0 |
source | src |
created_at | 2023-04-29 21:04:56.336322 |
updated_at | 2023-04-29 21:04:56.336322 |
description | Monzilla file monitor |
homepage | |
repository | https://github.com/jlyonsmith/monzilla_rs |
max_upload_size | |
id | 852301 |
size | 48,952 |
An uncomplicated file monitoring tool. It runs a program then watches the files you specify for changes, restarting the program if the files change. You can also manually restart the program. If you need more power I suggest Watchman.
Install the command line tool with:
cargo install monzilla_rs
Then you can run it with something like the following:
monzilla -g 'scratch/*.fish' 'scratch/xyz.json5' -- scratch/forever.fish
Any time the files change the program will be killed and restarted.
This tool shows how to do a variety of advanced things in Rust:
select
to wait on multiple channelsPlus, all the good stuff found in my rust_cli_quickstart.