Files
SwiftShell/SwiftShellTests/Scripts/stream_out.swift
T
Kare Morstol 4d2fca7b74 Add operator |>> for printing anything to a writable stream.
Replaced all uses of writeTo with the new operator in unit tests, test scripts and readme.
2014-12-04 20:05:15 +01:00

6 lines
110 B
Swift
Executable File

#!/usr/bin/env swiftshell
import SwiftShell
run("echo this is streamed") |> run("wc -w") |>> standardoutput