1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
extern crate clap;
extern crate lazy_static;
extern crate postgres;
extern crate serde;

pub mod cli;
pub mod config;
pub mod models;
pub mod db;
pub mod server;

pub fn go() -> std::io::Result<()> {
  let matches = cli::args::get_matches();
  let cfg_dir = match matches.value_of("config") {
    None => String::from("./tests/testbed"),
    Some(o) => String::from(o)
  };
  server::start::start(cfg_dir)
}