You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
510 B

use std::fs::File;
use std::io::prelude::*;
use lang_evolve_core::settings::Settings;
mod opts;
use opts::Opts;
use clap::Clap;
3 years ago
fn main() {
let opts: Opts = Opts::parse();
let settings = Settings::from(opts.settings).unwrap();
let mut input_file = File::open(opts.input).unwrap();
let mut input = String::new();
input_file.read_to_string(&mut input).unwrap();
println!("{:?}", settings);
println!("{}", settings.apply(input).unwrap());
3 years ago