From 139bde7a2327fbb67d729c4f11af4ffc34bd31b7 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 9 Jan 2022 22:10:48 -0500 Subject: move to running the full command in the subprocess --- src/parse/ast.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/parse/ast.rs') 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, - 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) -> 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, } } } -- cgit v1.2.3-54-g00ecf