Enable "sequence of readable streams |> writeablestream".
Updated test script and README.
This commit is contained in:
@@ -2,8 +2,14 @@
|
||||
|
||||
import SwiftShell
|
||||
|
||||
/*
|
||||
let directories = environment["PATH"]!.split(":")
|
||||
|
||||
for directory in directories {
|
||||
run("find \"\(directory)\" -type f -perm +ugo+x -print") |> standardoutput
|
||||
}
|
||||
*/
|
||||
|
||||
environment["PATH"]! |> split(":")
|
||||
|> map { directory in run("find \"\(directory)\" -type f -perm +ugo+x -print") }
|
||||
|> standardoutput
|
||||
|
||||
Reference in New Issue
Block a user