summaryrefslogtreecommitdiffstats
path: root/src/bin/client/main.rs
blob: 240ad66d5ff54356706c4e71f9dad42c6a7fd3ff (plain) (blame)
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();
}