diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-01-09 22:10:48 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-01-09 22:10:48 -0500 |
commit | 139bde7a2327fbb67d729c4f11af4ffc34bd31b7 (patch) | |
tree | 71ec722586701c42615d5921bbf1645205559809 /src/parse/ast.rs | |
parent | 819158c696c24b51f5881a8ea5e765fe21bb1b87 (diff) | |
download | nbsh-139bde7a2327fbb67d729c4f11af4ffc34bd31b7.tar.gz nbsh-139bde7a2327fbb67d729c4f11af4ffc34bd31b7.zip |
move to running the full command in the subprocess
Diffstat (limited to 'src/parse/ast.rs')
-rw-r--r-- | src/parse/ast.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/parse/ast.rs b/src/parse/ast.rs index 3008ef9..ca568eb 100644 --- a/src/parse/ast.rs +++ b/src/parse/ast.rs @@ -89,7 +89,6 @@ impl Command { #[derive(Debug, Clone, PartialEq, Eq)] pub struct Pipeline { exes: Vec<Exe>, - input_string: String, } impl Pipeline { @@ -99,16 +98,10 @@ impl Pipeline { } } - pub fn input_string(&self) -> &str { - &self.input_string - } - fn build_ast(pipeline: pest::iterators::Pair<Rule>) -> Self { assert!(matches!(pipeline.as_rule(), Rule::pipeline)); - let input_string = pipeline.as_str().to_string(); Self { exes: pipeline.into_inner().map(Exe::build_ast).collect(), - input_string, } } } |