14 lines
341 B
Rust
14 lines
341 B
Rust
pub mod logging;
|
|
|
|
use std::io::Write;
|
|
|
|
pub fn _input(prompt: &str) -> String {
|
|
print!("{prompt}\n > ");
|
|
std::io::stdout().flush().expect("Failed to flush stdout");
|
|
let mut input = String::new();
|
|
std::io::stdin()
|
|
.read_line(&mut input)
|
|
.expect("Failed to read line from stdin");
|
|
input.trim().to_string()
|
|
}
|