scrumtask-cli/src/io_utils.rs
itsscb 6f8b865e33 feat: adds main loop
fix: some logic bugs
2024-08-12 22:26:24 +02:00

14 lines
269 B
Rust

use std::io;
pub fn get_user_input() -> String {
let mut user_input = String::new();
io::stdin().read_line(&mut user_input).unwrap();
user_input.trim().to_owned()
}
pub fn wait_for_key_press() {
io::stdin().read_line(&mut String::new()).unwrap();
}