You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
extern crate clap;
|
|
|
|
extern crate config;
|
|
|
|
mod igloo;
|
|
|
|
|
|
|
|
use clap::{crate_version, crate_description, crate_authors, App, Arg, AppSettings, ArgMatches};
|
|
|
|
use config::*;
|
|
|
|
use std::collections::HashMap;
|
|
|
|
use std::path::{Path, PathBuf};
|
|
|
|
use std::os::unix::fs;
|
|
|
|
#[allow(unused_variables)]
|
|
|
|
#[allow(unused_imports)]
|
|
|
|
fn main()
|
|
|
|
{
|
|
|
|
let ig = igloo::Igloo::New();
|
|
|
|
let start_ret = match ig.start()
|
|
|
|
{
|
|
|
|
Ok(it) =>
|
|
|
|
{
|
|
|
|
match ig.run(it)
|
|
|
|
{
|
|
|
|
Ok(rt) => println!("{:?}", rt),
|
|
|
|
Err(e) => println!("Run Error: {:?}", e),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Err(e) => println!("Error: {:?}", e),
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|