this is a bad idea

parse-tree
Jordan Orelli 2 years ago
commit 67b4a36fba

1
.gitignore vendored

@ -0,0 +1 @@
/target

7
Cargo.lock generated

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "wash"
version = "0.1.0"

@ -0,0 +1,8 @@
[package]
name = "wash"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

@ -0,0 +1,19 @@
use std::io;
use std::io::Write;
fn main() {
let stdin = io::stdin();
let mut stdout = io::stdout();
let mut line = String::new();
loop {
match stdin.read_line(&mut line) {
Ok(_) => {
if let Err(_) = stdout.write(b"ok\n") {
break;
}
}
Err(_) => break,
}
}
}
Loading…
Cancel
Save