mirror of
https://github.com/watchexec/watchexec.git
synced 2024-11-17 01:28:30 +01:00
12 lines
198 B
Rust
12 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(())
|
||
|
}
|