1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use std::path::PathBuf; use structopt::StructOpt; use github_webhook_type_generator::*; #[derive(Debug, StructOpt)] struct Opt { dts_file: PathBuf, } fn main() { let opt = Opt::from_args(); let rs = dts2rs(&opt.dts_file); print!("{}", rs); }