2.1
-
Have main.tempdirectory use the name of the script/application.
Fall back to ‘SwiftShell’ if main.path is empty (running in a playground).
-
Allow passing Ints as error codes to "exit".
-
Actually print error messages in release builds.
Workaround for a compiler bug where passing an NSError to exit in release builds would not print the actual error message.
-
Fix #16 by having WriteableStream use ‘print’ when writing to standard output.
This way print's buffering when standard output is not a terminal does not rearrange the order in which output is printed when using both 'print' and 'main.stdout.writeln'.
See also https://bugs.swift.org/browse/SR-1127 and http://stackoverflow.com/a/13933741/96587 . -
Add stop func to stop an AsyncShellTask early.
-
Add async callbacks for ReadableStream.onOutput and AsyncShellTask.onCompletion - allows for getting callbacks with data as the AsyncShellTask is running.
-
Add AsyncShellTask.onStringOutput.
Thanks to @kenthinson for implementing the 3 last ones.