| Crates.io | fswatcher |
| lib.rs | fswatcher |
| version | 0.4.2 |
| created_at | 2025-02-18 01:11:11.215501+00 |
| updated_at | 2025-04-19 14:32:45.542726+00 |
| description | A file system watcher that executes a command when a specified file changes. |
| homepage | |
| repository | https://github.com/jmarcelomb/fswatcher |
| max_upload_size | |
| id | 1559510 |
| size | 38,510 |
fswatcher is a simple CLI tool to monitor file changes and execute a command when modifications are detected. It is built with Rust and utilizes the notify crate for efficient filesystem event watching.
You can install fswatcher using Cargo:
cargo install fswatcher
Run fswatcher by specifying a file to watch and a command to execute when the file changes:
fswatcher <file> <command>
fswatcher config.yaml 'echo "Config changed!"'
This will monitor config.yaml and print "Config changed!" whenever the file is modified.
Clone the repository and build locally:
git clone https://github.com/jmarcelomb/fswatcher.git
cd fswatcher
cargo build --release
Run the tool with:
cargo run -- <file> <command>
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions, issues, and feature requests are welcome! Feel free to open an issue or submit a pull request.
Created by Marcelo Borges.