summaryrefslogtreecommitdiffstats
path: root/src/parse
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-01-09 22:10:48 -0500
committerJesse Luehrs <doy@tozt.net>2022-01-09 22:10:48 -0500
commit139bde7a2327fbb67d729c4f11af4ffc34bd31b7 (patch)
tree71ec722586701c42615d5921bbf1645205559809 /src/parse
parent819158c696c24b51f5881a8ea5e765fe21bb1b87 (diff)
downloadnbsh-139bde7a2327fbb67d729c4f11af4ffc34bd31b7.tar.gz
nbsh-139bde7a2327fbb67d729c4f11af4ffc34bd31b7.zip
move to running the full command in the subprocess
Diffstat (limited to 'src/parse')
-rw-r--r--src/parse/ast.rs7
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,
}
}
}