2024-02-09 17:47:34 +01:00
|
|
|
// Application.
|
|
|
|
|
pub mod app;
|
|
|
|
|
|
|
|
|
|
use anyhow::Result;
|
|
|
|
|
use app::App;
|
|
|
|
|
use std::io;
|
|
|
|
|
|
|
|
|
|
fn main() -> Result<()> {
|
|
|
|
|
// Create an application.
|
|
|
|
|
let mut app = App::new();
|
|
|
|
|
|
|
|
|
|
// Start the main loop.
|
|
|
|
|
while !app.should_quit {
|
2024-02-17 12:55:36 +01:00
|
|
|
println!("whot?>");
|
2024-02-09 17:47:34 +01:00
|
|
|
let mut input = String::new();
|
|
|
|
|
let _bytecount = io::stdin().read_line(&mut input)?;
|
|
|
|
|
app.input(input.trim());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Ok(())
|
|
|
|
|
}
|