From 7b932969d69dc99b49f1a7a7ec7e5d87024bcfe2 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 8 Jan 2022 14:31:47 -0500 Subject: there's no reason to eval at all in the main shell --- src/parse.rs | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/parse.rs') diff --git a/src/parse.rs b/src/parse.rs index f147892..f2bee2c 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -1,30 +1,14 @@ pub mod ast; -#[derive(Debug)] -pub struct Commands { - pipelines: Vec, -} - -impl Commands { - pub fn pipelines(&self) -> &[Pipeline] { - &self.pipelines - } -} - #[derive(Debug)] pub struct Pipeline { exes: Vec, - input_string: String, } impl Pipeline { pub fn into_exes(self) -> impl Iterator { self.exes.into_iter() } - - pub fn input_string(&self) -> &str { - &self.input_string - } } #[derive(Debug)] -- cgit v1.2.3-54-g00ecf