summaryrefslogtreecommitdiffstats
path: root/src/bin/client/main.rs
blob: 2ff6f559e7962ba2da1e33235db219f78613f380 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#[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);
    }

    println!("Welcome to Zagan-Bet Client!");
    println!("Type 'help' for available commands.");

    state.run();
}