From f119638daa4df426a194e2e83eb754dad3d68550 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 1 Feb 2012 14:10:13 +0000 Subject: it::pipe docs --- it.class | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/it.class b/it.class index d6bd7a5..4d6d875 100644 --- a/it.class +++ b/it.class @@ -840,6 +840,11 @@ function cat($fn = null) return new it_pipe(array('fn' => $fn)); } +/** + * Create an it_pipe from a command or a lines array + * @param $cmd command to execute, or if it is an array, the lines to use + * @param $args named arguments to fill into cmd. see it::exec for usage + */ function pipe($cmd, $args = array()) { return new it_pipe(is_string($cmd) ? array('cmd' => $cmd, 'args' => $args) : array('data' => $cmd)); -- cgit v1.2.3