Renamed binaries to make things a bit more general

This commit is contained in:
Dave Hrycyszyn
2024-10-19 16:50:45 +01:00
parent 4cf3d03349
commit e821ed2a57
30 changed files with 91 additions and 69 deletions

View File

@@ -0,0 +1,11 @@
use std::io::BufRead;
/// Wait for stdin terminal input and send it to the node if any arrives
pub(crate) fn input(stdin_sender: std::sync::mpsc::Sender<String>) {
let stdin = std::io::stdin();
let lines = stdin.lock().lines();
for line in lines {
let line = line.unwrap();
stdin_sender.send(line).unwrap();
}
}