diff options
Diffstat (limited to 'src/bin/client/main.rs')
| -rw-r--r-- | src/bin/client/main.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/bin/client/main.rs b/src/bin/client/main.rs new file mode 100644 index 0000000..ce9c92f --- /dev/null +++ b/src/bin/client/main.rs | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | mod repl; | ||
| 2 | mod database; | ||
| 3 | mod connection; | ||
| 4 | mod platform; | ||
| 5 | |||
| 6 | use repl::ClientState; | ||
| 7 | |||
| 8 | fn main() { | ||
| 9 | #[cfg(windows)] | ||
| 10 | platform::win::enable_vt().unwrap(); | ||
| 11 | |||
| 12 | let mut state = ClientState::new(); | ||
| 13 | if let Some(host) = state.addr.clone() { | ||
| 14 | state.connect_to(&host); | ||
| 15 | } | ||
| 16 | state.run(); | ||
| 17 | } | ||
