Commit Graph

322 Commits

Author SHA1 Message Date
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
Kare Morstol e9c0e849d2 PartialSourceLazySplitSequence v1. 2015-12-14 21:57:40 +01:00
Kare Morstol 39878a3589 Moved 'splitOnce' to the top. 2015-12-14 00:40:19 +01:00
Kare Morstol cadc7ff8c8 Readme: explain why it doesn't work on Linux. 2015-12-13 23:55:45 +01:00
Kare Morstol 327db331df Readme: don't use heading 3
It looks almost identical to heading 2 on github.com
2015-12-13 23:38:54 +01:00
Kare Morstol 9f5fae7b9d Lazy split: Simplified code and made it correct.
My favourite combination.
2015-12-10 23:41:20 +01:00
Kare Morstol d55ddf0fb7 Implement handling of allowEmptySlices, add LazyCollectionType.split .
Proper unit tests, also of standard library CollectionType.split, to ensure they do the same.
2015-12-10 03:00:12 +01:00
Kare Morstol 0768a86420 Add CollectionType.splitOnce and LazySplitGenerator. 2015-12-09 02:29:29 +01:00
Kare Morstol 304549cab4 Disable script test for functionality not yet implemented. 2015-12-03 01:29:58 +01:00
Kare Morstol 8bdbda0c4b Readme: Add some cool badges. 2015-12-03 00:01:40 +01:00
Kare Morstol 35a1bd7642 Readme: rearrange + add more ways to use SwiftShell. 2015-12-02 23:48:51 +01:00
Kare Morstol 92bf0d1633 Enable installation of framework to ~/Library/Frameworks by running 'xcodebuild install'. 2015-11-26 23:37:27 +01:00
Kare Morstol 12fb5b2a5c Remove errant space. v2.0b1 2015-11-24 21:16:25 +01:00
Kare Morstol 3eb8a72981 Update to 2.1 in .swift-version . 2015-11-23 20:35:42 +01:00
Kare Morstol d2064aeef3 Use '+' to append strings to NSUrls instead of '/' .
Because it looks much better and makes more sense.
2015-11-20 00:55:41 +01:00
Kare Morstol 280f9e631e Change flatmap to map. Because ‘open’ doesn't return an optional. 2015-11-12 23:29:43 +01:00
Kare Morstol 53feebe0e2 Readme: add example. 2015-11-12 02:20:48 +01:00
Kare Morstol d9ff7a5884 Simplify main.arguments. 2015-11-11 20:55:32 +01:00
Kare Morstol 8b6e6f1ed6 Exchange main.name with main.path. 2015-11-11 20:38:58 +01:00