forked from katzen-cafe/iowo
remove old cli
This commit is contained in:
parent
746c81ab60
commit
48458fd1c9
3 changed files with 0 additions and 31 deletions
|
@ -2,7 +2,6 @@
|
||||||
members = [
|
members = [
|
||||||
"crates/app",
|
"crates/app",
|
||||||
"crates/executor",
|
"crates/executor",
|
||||||
"crates/pl-cli",
|
|
||||||
"crates/rpl"
|
"crates/rpl"
|
||||||
]
|
]
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
[package]
|
|
||||||
name = "pl-cli"
|
|
||||||
version = "0.1.0"
|
|
||||||
edition = "2021"
|
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
clap = { workspace = true, features = [ "derive" ] }
|
|
||||||
rpl = { path = "../rpl" }
|
|
||||||
executor = { path = "../executor" }
|
|
|
@ -1,19 +0,0 @@
|
||||||
use std::{fs, path::PathBuf};
|
|
||||||
|
|
||||||
use clap::Parser;
|
|
||||||
use executor::{execute_all, Executors};
|
|
||||||
|
|
||||||
#[derive(Parser, Debug)]
|
|
||||||
pub struct Args {
|
|
||||||
file: PathBuf,
|
|
||||||
primary_executor: Executors,
|
|
||||||
}
|
|
||||||
|
|
||||||
fn main() {
|
|
||||||
let args = dbg!(Args::parse());
|
|
||||||
|
|
||||||
let f = fs::read_to_string(args.file).unwrap();
|
|
||||||
let pl = rpl::from_ron(&f);
|
|
||||||
|
|
||||||
execute_all(pl.0);
|
|
||||||
}
|
|
Loading…
Reference in a new issue