Commit Graph

54 Commits

Author SHA1 Message Date
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
Kare Morstol ac7931d8b5 Fix typos and space for indentation. 2014-09-02 18:17:20 +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 f80cba9c2f Simplify header. 2014-09-02 15:00:09 +02:00
Kare Morstol 6ca7959311 standardinput, standardoutput, standarderror are now StreamTypes, not FileHandles. 2014-09-02 14:21:26 +02:00
Kare Morstol c3ae075c5c Renamed File tests to FileHandle* too. 2014-08-29 02:42:20 +02:00
Kare Morstol c9c4a99c2d Added Eclipse Public License header. 2014-08-29 02:31:44 +02:00
Kare Morstol a647c41319 Renamed File to FileHandle. 2014-08-29 01:55:08 +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 df723fef5a Even more documentation. 2014-08-29 01:44:49 +02:00
Kare Morstol e7fb2de10b Added documentation. 2014-08-28 21:04:28 +02:00
Kare Morstol 45bc5b2ae2 Test script for streaming to standardOutput.
Renamed script.
2014-08-28 20:47:37 +02:00
Kare Morstol d2d2f67bfa Added playground. Excellent for rapidly testing stuff. 2014-08-28 20:35:02 +02:00
Kare Morstol e0122983df Added documentation. 2014-08-28 20:28:13 +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 bd99bd1cf5 swiftshell.bash now handles script paths containing spaces. 2014-08-28 01:57:13 +02:00
Kare Morstol cecf62fdda Make sure a command is finished before the next begins. 2014-08-28 00:33:06 +02:00
Kare Morstol cf31b577bb Running "xcodebuild install" installs the framework to ~/Library/Frameworks, and doing a clean build no longer removes it. 2014-08-28 00:24:02 +02:00
Kare Morstol 85579f6b37 Print one stream to another: readablestream |> writablestream 2014-08-28 00:21:13 +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 4fed65c1ab Added Eclipse license. 2014-08-26 22:25:39 +02:00
Kare Morstol 10f623d4c8 Added documentation. Light cleanup. 2014-08-26 00:24:26 +02:00
Kare Morstol d39a3c8d58 Making this executable is probably a good idea. 2014-08-26 00:19:19 +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
Kare Morstol a135dd0a5d Added swiftshell.bash to actually run the Swift script files 2014-08-25 22:03:08 +02:00
Kare Morstol ed34a689ec ReadableStreamType inherits from Streamable.
Also tried out and commented stuff that does not work in beta 6.
2014-08-23 21:02:08 +02:00
Kare Morstol e63494b68b Added new test file for Stream_Iteration_SpeedTests. Cleaned up. 2014-08-22 21:56:24 +02:00
Kare Morstol 3e35e0db13 Changed from XCTAssert to XCTAssertEqual, since that works now.
Removed tests for strange apparently local bug.
2014-08-22 02:18:43 +02:00
Kare Morstol 660b2f9d00 Radically simplified stream(String) and stream(array/sequence). 2014-08-22 01:46:27 +02:00
Kare Morstol 30c1412d32 Apparently this file makes Xcode think this is a bilingual framework, and we don't want that. 2014-08-21 23:40:14 +02:00
Kare Morstol 8c6f0a7171 Moved stream factory functions from unit test to stream.swift.
A new stream factory function which takes a closure which returns a closure which returns a string.
2014-08-21 23:38:50 +02:00
Kare Morstol 9c61126c5b stream(text: String) -> NSFileHandle uses writeabilityHandler 2014-08-21 01:58:19 +02:00
Kare Morstol 62a3604e4f NSFileHandle implements WriteableStreamType. 2014-08-21 01:18:37 +02:00
Kare Morstol 07fbd7df80 The release build now installs the framework to ~/Library/Frameworks/.
But it is deleted the next time you do a clean build. Y
2014-08-21 00:08:36 +02:00