1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#[macro_use] mod macros; mod repl; mod database; mod connection; use repl::ClientState; fn main() { let mut state = ClientState::new(); if let Some(host) = state.addr.clone() { state.connect_to(&host); } state.run(); }