Skip to content

Commit 47c598f

Browse files
author
Test
committed
feat(parser): add Pipeline variant to Command enum (Phase 6 M3 Component 3)
- Add Command::Pipeline with stages and redirects - Each stage is (program, args) pair - Final redirections apply to last stage only Part of Phase 6 Milestone 3: Pipeline implementation
1 parent d643b21 commit 47c598f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

impl/rust-cli/src/parser.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,15 @@ pub enum Command {
116116
args: Vec<String>,
117117
redirects: Vec<Redirection>,
118118
},
119+
120+
/// Pipeline of external commands (cmd1 | cmd2 | cmd3)
121+
///
122+
/// Each stage is a (program, args) pair. Intermediate stages use piped stdio.
123+
/// Final redirections apply to the last stage only.
124+
Pipeline {
125+
stages: Vec<(String, Vec<String>)>,
126+
redirects: Vec<Redirection>,
127+
},
119128
}
120129

121130
/// Tokenize input string into words and redirection operators

0 commit comments

Comments
 (0)