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/main.rs

24 lines
419 B
Rust
Raw Normal View History

2017-07-18 14:27:50 +01:00
#[macro_use]
extern crate clap;
#[macro_use]
extern crate serde_derive;
2017-07-17 09:52:22 +01:00
extern crate serde_yaml;
2017-07-12 14:01:52 +01:00
mod args;
2017-07-17 09:52:22 +01:00
mod config;
2017-07-20 09:14:48 +01:00
mod process;
mod input;
2017-07-12 14:01:52 +01:00
2017-07-12 14:40:25 +01:00
#[cfg(test)]
mod tests;
2017-07-01 21:10:25 +01:00
fn main() {
2017-07-17 10:02:58 +01:00
let args = args::get_matches();
if args.subcommand_name().unwrap() == "build" {
2017-07-21 19:25:39 +01:00
let mut config = config::get_config().unwrap();
2017-07-20 09:24:04 +01:00
config.verbosity = args::get_verbose(args);
2017-07-20 09:14:48 +01:00
process::build(config);
2017-07-17 10:02:58 +01:00
}
2017-07-01 21:10:25 +01:00
}