iowo/crates/pl-cli/src/main.rs

20 lines
347 B
Rust
Raw Normal View History

2024-01-01 06:30:04 +00:00
use std::{fs, path::PathBuf};
use clap::Parser;
use executor::{execute_all, Executors};
#[derive(Parser, Debug)]
pub struct Args {
file: PathBuf,
primary_executor: Executors,
}
2023-12-13 17:13:43 +00:00
fn main() {
2024-01-01 06:30:04 +00:00
let args = dbg!(Args::parse());
let f = fs::read_to_string(args.file).unwrap();
let pl = rpl::from_ron(&f);
execute_all(pl.0);
2023-12-13 17:13:43 +00:00
}