watchexec/crates/events/examples/parse-and-print.rs
2023-03-18 21:32:24 +13:00

11 lines
198 B
Rust

use std::io::{stdin, Result};
use watchexec_events::Event;
fn main() -> Result<()> {
for line in stdin().lines() {
let event: Event = serde_json::from_str(&line?)?;
dbg!(event);
}
Ok(())
}