client_cli
This commit is contained in:
parent
2525dd3664
commit
92d5779929
6 changed files with 104 additions and 1 deletions
21
client_cli/src/main.rs
Normal file
21
client_cli/src/main.rs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
// 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 {
|
||||
println!("what?>");
|
||||
let mut input = String::new();
|
||||
let _bytecount = io::stdin().read_line(&mut input)?;
|
||||
app.input(input.trim());
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue