Kare Morstol
c7338cf9eb
Add ReadableStream.lines() for lazily splitting output into lines.
2015-12-15 23:03:31 +01:00
Kare Morstol
304549cab4
Disable script test for functionality not yet implemented.
2015-12-03 01:29:58 +01:00
Kare Morstol
12fb5b2a5c
Remove errant space.
2015-11-24 21:16:25 +01:00
Kare Morstol
8b6e6f1ed6
Exchange main.name with main.path.
2015-11-11 20:38:58 +01:00
Kare Morstol
3554bb4ef8
Simplify SwiftShellTests/Scripts/print_linenumbers.swift .
2015-11-10 21:06:47 +01:00
Kare Morstol
a7b7033383
Remove a couple of double spaces.
...
I do not like double spaces.
2015-11-09 23:53:12 +01:00
Kare Morstol
4da7c5b668
Use $SWIFTSHELL_FRAMEWORK_PATH instead of $DYLD_FRAMEWORK_PATH in the swiftshell launcher script.
...
Because of this change in El Capitan:
"Spawning children processes of processes restricted by System Integrity Protection, such as by launching a helper process in a bundle with NSTask or calling the exec(2) command, resets the Mach special ports of that child process. Any dynamic linker (dyld) environment variables, such as DYLD_LIBRARY_PATH, are purged when launching protected processes."
https://developer.apple.com/library/prerelease/mac/documentation/Security/Conceptual/System_Integrity_Protection_Guide/RuntimeProtections/RuntimeProtections.html
2015-11-09 21:45:54 +01:00
Kare Morstol
cab35b4078
Add a trailing / to ‘main.tempdirectory’.
2015-10-18 23:44:22 +02:00
Kare Morstol
70319b54db
Update test scripts for SwiftShell 2.0.
...
Finally.
2015-10-16 03:52:47 +02:00
Kare Morstol
91abb8c47c
Update test scripts.
...
The rest are waiting for reading and writing files to be implemented.
2015-09-08 18:06:49 +02:00
Kare Morstol
93922a4101
Fix main.name .
...
Now prints the script's name instead of its path.
2015-09-07 22:17:37 +02:00
Kare Morstol
0888054ad0
Shell tests use new Xcode project.
2015-07-19 22:14:33 +02:00
Kare Morstol
a9dbdcf629
Update to Swift 2.0 .
...
Wow, lots of changes in Swift 2.0! And all of them great, except for renaming println to print. What's up with that?
This is just to get it to compile, we will be trying and throwing errors in no time.
2015-06-28 00:52:40 +02:00
Kare Morstol
e55b2f91f5
Small changes to documentation
2015-03-20 22:02:28 +01:00
Kare Morstol
9555306183
Close #3 : Make sure runtests.bash is using an up to date _release_ build.
2015-01-06 18:34:40 +01:00
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
Kare Morstol
1f96ffa770
Enable "/" as file path concatenation operator.
...
Now you can do `let filepath = tempdirectory / "newfile.txt"`.
2014-12-02 02:06:21 +01:00
Kare Morstol
e74189d008
Make tempdirectory a String instead of a NSURL.
...
The fact that NSURLs cannot be created with string literals makes them too cumbersome to use.
2014-12-02 00:17:39 +01:00
Kare Morstol
a2985b049d
Add shell unit tests and update test scripts.
...
Run SwiftShellTests/Scripts/runtests.bash to perform all unit tests.
2014-11-26 20:58:22 +01:00
Kare Morstol
c65e029811
Include assert.sh from http://github.com/lehmannro/assert.sh for shell unit testing.
...
Also included the required licenses.
2014-11-26 20:36:43 +01:00
Kare Morstol
65625bbc75
Remove "listallexecutablesinpath.swift" and turn it into a Gist. List it as an example in the README.
...
It was way too wordy to use as a test.
2014-11-26 00:00:15 +01:00
Kare Morstol
f60f6ae083
Add script for testing reading and writing files.
2014-11-25 20:45:38 +01:00
Kare Morstol
977888c03b
Rename "write" functions to "writeTo".
...
Because it makes more sense.
2014-10-25 19:17:07 +02:00
Kare Morstol
8441d5e87b
Add missing newline at end of file
2014-10-22 21:37:50 +02:00
Kare Morstol
9136d17843
Use "|> write(standardoutput)" instead of " |> standardoutput". And support writing of sequences of strings.
...
Avoids the special case of "|> WriteableStreamType".
2014-10-15 23:03:42 +02:00
Kare Morstol
f56f7a0371
Use SwiftShells environment.
2014-10-07 19:03:56 +02:00
Kare Morstol
715cb3ef14
Test callswiftscriptfromswift last to test its components first.
2014-10-07 18:39:05 +02:00
Kare Morstol
b111afa8d8
Add bash script to test all Swift scripts.
2014-09-24 21:15:25 +02:00
Kare Morstol
96eb12b9fe
Enable "sequence of readable streams |> writeablestream".
...
Updated test script and README.
2014-09-18 00:51:50 +02:00
Kare Morstol
1d6788c08e
Add readme to scripts folder. Move test area.playground.
2014-09-11 21:39:35 +02:00
Kare Morstol
84b1d5624d
Add test script callswiftscriptfromswift.swift.
2014-09-11 20:37:44 +02:00
Kare Morstol
f992418c9b
Add missing newline to the end.
2014-09-10 20:10:22 +02:00
Kare Morstol
0b38585a1e
Add testReadFileLineByLine, readfilelinebyline.Swift test script and a short text file for testing.
2014-09-09 18:57:39 +02:00
Kare Morstol
be5b2a04c6
Put quotes around "directory" in case one of them contains spaces.
2014-09-08 18:37:54 +02:00
Kare Morstol
680608bd45
Made all test scripts executable for everyone.
2014-09-08 18:33:46 +02:00
Kare Morstol
9f3a12d57c
added shebang "#!/usr/bin/env swiftshell" to all test scripts.
2014-09-04 19:50:37 +02:00
Kare Morstol
afd59bacad
Script for printing the shell environment variables.
2014-09-02 20:09:55 +02:00
Kare Morstol
96ab5a2070
Enable "func run (shellcommand: String) -> ReadableStreamType" to also be run by itself on a single line.
...
A thorough explanation is forthcoming.
2014-09-02 15:23:22 +02:00
Kare Morstol
7dd3d0e1a7
Removed a lot of double spaces. I'm dictating, so they sneak in there occasionally.
2014-08-29 01:50:34 +02:00
Kare Morstol
45bc5b2ae2
Test script for streaming to standardOutput.
...
Renamed script.
2014-08-28 20:47:37 +02:00
Kare Morstol
a31f018c6b
Added access to environment variables, and new test script listallexecutablesinpath.
2014-08-28 03:15:07 +02:00
Kare Morstol
6350fda52a
Something like 'run("ls") |> standardoutput' now works
2014-08-28 02:17:27 +02:00
Kare Morstol
5aad0cc3e4
"open" now writes to standardError and quits when opening a file fails.
...
Using assert here was a really bad idea since it may not be evaluated in a release build.
2014-08-28 00:12:01 +02:00
Kare Morstol
1e31759b09
Scripts_Tests is under construction in a different branch
2014-08-26 22:34:08 +02:00
Kare Morstol
55c96103ac
Added scripts folder for testing entire scripts.
...
Added one test script and a unit test file for running them.
Disabled deployment of framework on release build because it gets removed again as soon as I do a clean build.
2014-08-25 22:09:24 +02:00