mirror of
https://github.com/ksherlock/mpw-shell.git
synced 2024-06-07 19:29:42 +00:00
shell testing.
This commit is contained in:
parent
e4a124f514
commit
58301861a3
|
@ -68,13 +68,21 @@ int main(int argc, char **argv) {
|
|||
|
||||
phase1 p1;
|
||||
phase2 p2;
|
||||
p1 >>= p2;
|
||||
|
||||
p2 >>= [](command_ptr &&ptr) {
|
||||
printf("command: %d\n", ptr->type);
|
||||
ptr->execute();
|
||||
};
|
||||
/*
|
||||
p1 >>= [&p2](std::string &&s) {
|
||||
|
||||
fprintf(stdout, " -> %s\n", s.c_str());
|
||||
p2.process(s);
|
||||
};
|
||||
|
||||
*/
|
||||
read_stdin(p1);
|
||||
p2.finish();
|
||||
|
||||
/*
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue
Block a user