Sat, 26 Jan 2019 20:19:06 +0400

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2019-01-26 20:19:06 +04:00
parent af986fa645
commit b591a9c567
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3

View File

@ -1,11 +1,19 @@
use std::fs::File;
use std::io::BufReader;
extern crate clap;
use clap::{load_yaml, App};
mod parser;
use parser::*;
fn main() {
let file: File = File::open("events.xml").unwrap();
let yaml = load_yaml!("cli/ru.yml");
let matches = App::from_yaml(yaml).get_matches();
let path = matches.value_of("FILE").unwrap();
let file: File = File::open(path).unwrap();
let data: ParserResult = parse(BufReader::new(file));
dbg!(data.meeting_name);
}