]> gitweb.factorcode.org Git - factor.git/commitdiff
shell: Add basic pipeline support
authorEduardo Cavazos <dharmatech@finkelstein.stackeffects.info>
Fri, 16 May 2008 23:14:36 +0000 (18:14 -0500)
committerEduardo Cavazos <dharmatech@finkelstein.stackeffects.info>
Fri, 16 May 2008 23:14:36 +0000 (18:14 -0500)
extra/shell/shell.factor

index 7f30104e219b65bd891fa4e0dad961e02e2efd1f..8ba5b66d5ac7f2a8fd28c2523e8fbdbbde61d86e 100644 (file)
@@ -1,7 +1,7 @@
 
 USING: kernel parser words continuations namespaces debugger
        sequences combinators splitting prettyprint
-       system io io.files io.launcher io.encodings.utf8 sequences.deep
+       system io io.files io.launcher io.encodings.utf8 io.pipes sequences.deep
        accessors multi-methods newfx shell.parser ;
 
 IN: shell
@@ -95,8 +95,7 @@ METHOD: expand { object } ;
 
 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
-: pipeline-chant ( pipeline-chant -- )
-  drop "ix: pipelines not supported" print ;
+: pipeline-chant ( pipeline-chant -- ) commands>> run-pipeline drop ;
 
 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!