diff options
Diffstat (limited to 'src/parse.rs')
-rw-r--r-- | src/parse.rs | 16 |
1 files changed, 0 insertions, 16 deletions
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<Pipeline>, -} - -impl Commands { - pub fn pipelines(&self) -> &[Pipeline] { - &self.pipelines - } -} - -#[derive(Debug)] pub struct Pipeline { exes: Vec<Exe>, - input_string: String, } impl Pipeline { pub fn into_exes(self) -> impl Iterator<Item = Exe> { self.exes.into_iter() } - - pub fn input_string(&self) -> &str { - &self.input_string - } } #[derive(Debug)] |