Files
SwiftShell/SwiftShellTests/Scripts/callswiftscriptfromswift.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
128 B
Swift
Executable File

#!/usr/bin/env swiftshell
import SwiftShell
run("cat onetwothree.txt") |> run("./print_linenumbers.swift") |>> standardoutput