use osdb::branding::startup_msg; use osdb::cli::read_input; use osdb::command::Command; fn main() { startup_msg(); while let Some(input) = read_input() { match input.parse() { Ok(cmd) => match cmd { Command::MetaCommand(cmd) => { if cmd.execute().should_exit { println!("Good-bye"); break; } } Command::Statement(stmt) => stmt.execute(), }, Err(err) => eprintln!("{err}"), } } }