Kare Morstol
991da5fd39
Add “array” function for turning a sequence into an array, used after the |> operator.
2014-10-23 00:14:10 +02:00
Kare Morstol
838b5ee617
Make “Debug” the default command line configuration.
...
The Swift compiler (Xcode 6.1) crashes when reading from streams when SwiftShell is built with optimisations turned on (anything but "SWIFT_OPTIMIZATION_LEVEL = -Onone").
2014-10-22 22:12:28 +02:00
Kare Morstol
8441d5e87b
Add missing newline at end of file
2014-10-22 21:37:50 +02:00
Kare Morstol
7328c7c32e
Note how release builds from 6.1 GM 2 still crash when using streams.
2014-10-15 23:45:39 +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
d09aa63f3e
Add test testChainWithSequenceOfStreamsPrintedToStream.
2014-10-13 22:00:53 +02:00
Kare Morstol
a144bc2650
Fix small typo and excessive whitespace.
2014-10-09 18:36:28 +02:00
Kare Morstol
f56f7a0371
Use SwiftShells environment.
2014-10-07 19:03:56 +02:00
Kare Morstol
5cc4e33cb4
Small cleanup.
2014-10-07 18:53:26 +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
c6734b8825
Add testSequenceOfStreamsToStream.
2014-09-24 21:03:09 +02:00
Kare Morstol
c19d7537c6
Edit README to be less bad.
2014-09-23 01:18:10 +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
dd6e0d3a8f
Clean up double spaces.
2014-09-17 23:41:38 +02:00
Kare Morstol
7810c38765
pathForTestResource still won't work outside of a method (6.1 beta 2).
2014-09-17 23:40:52 +02:00
Kare Morstol
f0d4c34f9b
Add versions of global Swift functions that can be used with the |> operator.
...
- Moved overloads of |> operator for WriteableStreamType to Stream.swift.
Note: it takes forever to compile if you put too many |> operators in a row.
2014-09-17 23:39:21 +02:00
Kare Morstol
022bf75b76
Fix indentation of install command in README
2014-09-17 17:15:12 +02:00
Kare Morstol
f3de629868
Include note in README on using debug builds on Xcode 6.1
2014-09-17 17:09:52 +02:00
Kare Morstol
1aa06b20f5
Make debug build installable.
...
Have to use debug builds instead of release in Xcode 6.1 beta 2. See issue #2 .
2014-09-17 16:36:31 +02:00
Kare Morstol
7ef52b67bf
Move XCTestCase.pathForTestResource to a file common for all unit test targets.
2014-09-15 22:17:06 +02:00
Kare Morstol
e296555499
Silence warning from 6.1 beta 2.
...
"Treating a forced downcast to 'String' as optional will never produce 'nil'" is no doubt true, but I'm not treating it as an optional so I don't see the relevance.
2014-09-15 21:16:19 +02:00
Kare Morstol
36e217c0c3
Make piping one stream to another lazy.
2014-09-12 01:12: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
0883e76346
Shorten a line, fix strange highlighting of $.
2014-09-11 19:09:03 +02:00
Kare Morstol
7978b4286f
Explain how to run shell commands in readme.
2014-09-11 19:05:00 +02:00
Kare Morstol
10f0f46c10
Add "$("shellcommand")" as a shortcut for in-line commands.
...
Like the one you have in bash.
2014-09-11 18:15:25 +02:00
Kare Morstol
87659e8e15
Check if constant can be placed outside method now. It can't.
...
Also updated speed tests. They are almost 50% faster than beta 7!
2014-09-10 20:28:08 +02:00
Kare Morstol
f992418c9b
Add missing newline to the end.
2014-09-10 20:10:22 +02:00
Kare Morstol
1d3d876f22
Move "streams" function to the module.
...
Returns a writable stream and a readable stream. What you write to the 1st one can be read from the 2nd one.
Make sure to call closeStream() on the writable stream before you call read() on the readable one.
2014-09-10 20:08:39 +02:00
Kare Morstol
6bd78a11c5
Enable "String |> WriteableStreamType" again after 6.1 beta disabled it.
...
Strings no longer implement Printable in 6.1 beta.
2014-09-10 02:30:05 +02:00
Kare Morstol
6240e739f9
Enabling printing something Printable, like a String, to a writable stream.
2014-09-10 00:39:39 +02:00
Kare Morstol
1557d16b26
Ignore *.xctimeline
2014-09-09 19:39:24 +02:00
Kare Morstol
676f91befb
Add assertion to test.
2014-09-09 19:32:02 +02:00
Kare Morstol
322128be80
Merge branch 'master' of https://github.com/kareman/SwiftShell
...
* 'master' of https://github.com/kareman/SwiftShell :
Add example for reading file, move installation to the end.
2014-09-09 19:29:47 +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
4569705154
Add example for reading file, move installation to the end.
2014-09-09 18:52:20 +02:00
Kare Morstol
1238042b03
Fix code sample indentation in list.
2014-09-08 19:12:38 +02:00
Kare Morstol
62e48c8c63
Update README.md
2014-09-08 18:48:39 +02:00
Kare Morstol
2db569c9b8
Create README.md
2014-09-08 18:43:08 +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
fad80f1b0e
renamed swiftshell.bash to swiftshell and moved it to Div folder.
2014-09-04 19:49:12 +02:00
Kare Morstol
a5cb221cd7
test edge case in testIterateOverStreamInPieces
2014-09-04 18:33:39 +02:00
Kare Morstol
8090ef8917
still crashes the compiler (beta 7).
2014-09-04 18:33:06 +02:00
Kare Morstol
d054f4ea12
New speed test baselines.
2014-09-04 18:29:01 +02:00
Kare Morstol
afd59bacad
Script for printing the shell environment variables.
2014-09-02 20:09:55 +02:00
Kare Morstol
57f1d2d145
Clarify error message and exit code.
2014-09-02 18:18:00 +02:00