From 48458fd1c966573023c4b1e966c2a916d10d157f Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Sat, 20 Jan 2024 20:07:55 +0100 Subject: [PATCH] remove old cli --- Cargo.toml | 1 - crates/pl-cli/Cargo.toml | 11 ----------- crates/pl-cli/src/main.rs | 19 ------------------- 3 files changed, 31 deletions(-) delete mode 100644 crates/pl-cli/Cargo.toml delete mode 100644 crates/pl-cli/src/main.rs diff --git a/Cargo.toml b/Cargo.toml index bc41d16..1fc1618 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,6 @@ members = [ "crates/app", "crates/executor", - "crates/pl-cli", "crates/rpl" ] resolver = "2" diff --git a/crates/pl-cli/Cargo.toml b/crates/pl-cli/Cargo.toml deleted file mode 100644 index e6f8cc8..0000000 --- a/crates/pl-cli/Cargo.toml +++ /dev/null @@ -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" } diff --git a/crates/pl-cli/src/main.rs b/crates/pl-cli/src/main.rs deleted file mode 100644 index 9e84d33..0000000 --- a/crates/pl-cli/src/main.rs +++ /dev/null @@ -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); -}