This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
md-pdf-rs/src/config/mod.rs
2017-07-17 09:59:54 +01:00

27 lines
417 B
Rust

use serde_yaml;
pub mod read;
pub mod validate;
pub mod consts;
#[derive(Debug, Serialize, Deserialize)]
pub struct Config {
foo: String
}
impl Config {
}
fn construct(data: String) -> Config {
return serde_yaml::from_str(&data).unwrap();
}
pub fn get_config() {
let config_str = read::read();
let config = construct(config_str);
println!("{:?}", config);
validate::validate(config);
}