diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-01-08 14:31:47 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-01-08 14:31:47 -0500 |
commit | 7b932969d69dc99b49f1a7a7ec7e5d87024bcfe2 (patch) | |
tree | bb2b69901986a8865d790d76bd6e49a3ad79ccb3 /src/parse.rs | |
parent | 83de263441105e669acf79498788e1b66c6e3945 (diff) | |
download | nbsh-7b932969d69dc99b49f1a7a7ec7e5d87024bcfe2.tar.gz nbsh-7b932969d69dc99b49f1a7a7ec7e5d87024bcfe2.zip |
there's no reason to eval at all in the main shell
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)] |