340 Commits

Author SHA1 Message Date
Kare Morstol c27da54090 Readme: link back to master. 2016-10-10 23:14:18 +02:00
Kare Morstol a330bd57d0 Mention both OS X and macOS. 2016-06-23 04:45:44 +02:00
Kare Morstol 4a9fc65d31 Merge pull request #22 from apbendi/macos
Update README to reflect renaming of OS X to macOS
2016-06-23 04:38:00 +02:00
Ben DiFrancesco 3e5f37beef Update README to reflect renaming of OS X to macOS 2016-06-20 16:49:00 -04:00
Kare Morstol 6f36ef80ea Readme: add list of example scripts. 2016-05-20 21:32:48 +02:00
Kare Morstol 027b48e654 Readme: add links to the Swift 3 branch 2016-05-19 19:52:47 +02:00
Kare Morstol 7b73ae7be0 Test AsyncShellTask.onCompletion . 2.1 2016-04-28 02:48:36 +02:00
Kare Morstol a2c79a031f Add documentation for onOutput and onStringOutput. 2016-04-28 02:12:17 +02:00
Kare Morstol 95e0207e70 Rename to onStringOutput and add onOutput. Add tests for both. 2016-04-28 01:40:18 +02:00
Kare Morstol b6dc545756 Fix indentation. 2016-04-28 00:04:16 +02:00
Kent Hinson 34e7e06a41 Fixed extension comment. 2016-04-25 19:34:51 -07:00
Kent Hinson 1f2b7e074d Added stop func to stop the task early. added async callbacks for ReadableStream.onOutput and AsyncShellTask.onCompletion allows for getting callbacks with data as the AsyncShellTask is running. 2016-04-25 19:29:27 -07:00
Kare Morstol 9ecfe91c9c 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 .
2016-04-14 02:08:51 +02:00
Kare Morstol d9a3550677 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.
2016-04-07 01:35:02 +02:00
Kare Morstol ac77eb7e6a Allow passing Ints as error codes to "exit".
Actually all exit codes should be of type Int instead of Int32. But changing it in the rest of the framework could break backwards compatibility.
2016-04-07 01:29:19 +02:00
Kare Morstol e7ee357945 Rename playground, which is only working in a workspace. 2016-04-01 01:13:45 +02:00
Kare Morstol a6dab9cf38 createTempdirectory: exit with the correct error code.
… which will never happen.
2016-04-01 01:02:05 +02:00
Kare Morstol db1bbc3c26 Have main.tempdirectory use the name of the script/application.
Fall back to ‘SwiftShell’ if main.path is empty (running in a playground).
2016-04-01 00:43:23 +02:00
Kare Morstol eff36d83ec Docs: add warning about crashing if ‘executable’ is not.
Executable that is.
2016-03-31 21:43:33 +02:00
Kare Morstol 296274c63a Make AsyncShellTask a class.
It only contains objects so everything should continue working as before. It is basically a wrapper for NSTask so it should also be a class.
2016-03-31 05:08:15 +02:00
Kare Morstol 42c2c50da2 Make: use xcpretty if available. 2016-03-31 02:54:18 +02:00
Kare Morstol e3cb22b38a Readme: add section about error handling from commands. 2016-03-30 22:36:40 +02:00
Kare Morstol b5e46b02b9 /Tests/Scripts/README: mention 'make test'. 2016-03-30 14:12:02 +02:00
Kare Morstol 455d9017d9 Update CONTRIBUTING.md with correct links to Tests 2016-03-30 14:06:59 +02:00
Kare Morstol 6ec5dadb96 Improve documentation for what "runAndPrint" throws. 2016-03-30 01:01:07 +02:00
Kare Morstol 0b238c03fc Readme: note incompatibility with latest development snapshots.
Also add comment to code example.
2016-03-23 00:52:16 +01:00
Kare Morstol 02b93bc4ec Update to Swift 2.2: replace __X__ with #X. 2.0.2 2016-03-22 11:56:20 +01:00
Kare Morstol 251c4271b5 Readme: add link to skilled.io . 2016-03-21 20:17:18 +01:00
Kare Morstol 411a7f221b contributing.md: run make test instead of test script directly. 2016-03-21 20:08:48 +01:00
Kare Morstol 97c49c031a Readme: add link to auto-generated documentation. And improved documentation. Slightly. 2.0.1 2016-03-21 01:04:29 +01:00
Kare Morstol b0e3796fa0 Fix #15: run("cat","longtext.txt") never finishes for large files. 2016-03-03 05:14:09 +01:00
Kare Morstol 15da28218d Add AsyncShellTask.exitcode(). 2016-02-25 03:56:23 +01:00
Kare Morstol 73babca64f Make sure the test script finds the SwiftShell launcher script. 2016-02-25 01:48:01 +01:00
Kare Morstol 037424159b Readme: Add instructions for Swift Package Manager, change from command line to command-line. 2016-02-24 03:27:20 +01:00
Kare Morstol d77285c152 README: Remove any mention of the SwiftShell2 branch. Add the 2.0.0 tag. 2.0.0 2016-02-24 02:33:11 +01:00
Kare Morstol ed9551cecf Merge branch 'master' into SwiftShell2
in preparation for merging SwiftShell2 into master and making it the default branch.
2016-02-24 02:12:10 +01:00
Kare Morstol 4916480f4e Fix #14: Support building with Swift Package Manager.
That was easier than I feared.
2016-02-23 03:17:06 +01:00
Kare Morstol 0aa76e9017 Stop using curried function declaration syntax.
It will be removed from future versions of Swift.
2016-02-23 01:42:23 +01:00
Kare Morstol 4ddef113cb Improve output from "make test". And build first. 2016-02-05 00:52:15 +01:00
Kare Morstol d6045d1485 Add makefile with options ‘build’, ‘test’ and ‘clean’. 2016-01-22 02:34:31 +01:00
Kare Morstol e94ca0c378 Curb excessively long lines. Add some comments. 2016-01-21 21:37:45 +01:00
Kare Morstol 56cb89a5a7 Add some documentation. Rename unit test. 2016-01-21 21:35:15 +01:00
Kare Morstol 5ac1b5f690 Rename ‘Collection.swift’ to 'Lazy-split.swift'. v2.0b2 2015-12-18 23:05:22 +01:00
Kare Morstol 6dc391e83c Readme: use the new ‘lines’ method in the example, and simplify it. 2015-12-18 22:55:06 +01:00
Kare Morstol 3dada35a1b Merge branch 'Lazy-split' into SwiftShell2
* Lazy-split:
  Add documentation for "splitOnce".
  Add ReadableStream.lines() for lazily splitting output into lines.
  Make first parameter to LazySplitSequence anonymous.
  PartialSourceLazySplitSequence v3.
  PartialSourceLazySplitSequence v2.
  PartialSourceLazySplitSequence v1.
  Moved 'splitOnce' to the top.
  Lazy split: Simplified code and made it correct.
  Implement handling of allowEmptySlices, add LazyCollectionType.split .
  Add CollectionType.splitOnce and LazySplitGenerator.
2015-12-18 21:55:07 +01:00
Kare Morstol 94756b05f1 Add documentation for "splitOnce". 2015-12-18 21:27:24 +01:00
Kare Morstol c7338cf9eb Add ReadableStream.lines() for lazily splitting output into lines. 2015-12-15 23:03:31 +01:00
Kare Morstol 94daa432da Make first parameter to LazySplitSequence anonymous. 2015-12-15 22:55:36 +01:00
Kare Morstol a5bca2add6 PartialSourceLazySplitSequence v3. 2015-12-14 22:05:55 +01:00
Kare Morstol 0be08420c4 PartialSourceLazySplitSequence v2. 2015-12-14 21:57:57 +01:00