Commit Graph

  • 5ac1b5f690 Rename ‘Collection.swift’ to 'Lazy-split.swift'. v2.0b2 Kare Morstol 2015-12-18 23:05:22 +01:00
  • 6dc391e83c Readme: use the new ‘lines’ method in the example, and simplify it. Kare Morstol 2015-12-18 22:55:06 +01:00
  • 3dada35a1b Merge branch 'Lazy-split' into SwiftShell2 Kare Morstol 2015-12-18 21:55:07 +01:00
  • 94756b05f1 Add documentation for "splitOnce". Kare Morstol 2015-12-18 21:27:00 +01:00
  • c7338cf9eb Add ReadableStream.lines() for lazily splitting output into lines. Kare Morstol 2015-12-15 23:03:31 +01:00
  • 94daa432da Make first parameter to LazySplitSequence anonymous. Kare Morstol 2015-12-15 22:55:36 +01:00
  • a5bca2add6 PartialSourceLazySplitSequence v3. Kare Morstol 2015-12-14 22:05:55 +01:00
  • 0be08420c4 PartialSourceLazySplitSequence v2. Kare Morstol 2015-12-14 21:57:57 +01:00
  • e9c0e849d2 PartialSourceLazySplitSequence v1. Kare Morstol 2015-12-14 21:57:40 +01:00
  • 39878a3589 Moved 'splitOnce' to the top. Kare Morstol 2015-12-14 00:40:19 +01:00
  • cadc7ff8c8 Readme: explain why it doesn't work on Linux. Kare Morstol 2015-12-13 23:55:45 +01:00
  • 327db331df Readme: don't use heading 3 Kare Morstol 2015-12-13 23:38:54 +01:00
  • 9f5fae7b9d Lazy split: Simplified code and made it correct. Kare Morstol 2015-12-10 21:03:20 +01:00
  • d55ddf0fb7 Implement handling of allowEmptySlices, add LazyCollectionType.split . Kare Morstol 2015-12-10 02:35:41 +01:00
  • 0768a86420 Add CollectionType.splitOnce and LazySplitGenerator. Kare Morstol 2015-12-09 02:29:29 +01:00
  • 304549cab4 Disable script test for functionality not yet implemented. Kare Morstol 2015-12-03 01:29:58 +01:00
  • 8bdbda0c4b Readme: Add some cool badges. Kare Morstol 2015-12-03 00:01:40 +01:00
  • 35a1bd7642 Readme: rearrange + add more ways to use SwiftShell. Kare Morstol 2015-12-02 23:48:51 +01:00
  • 92bf0d1633 Enable installation of framework to ~/Library/Frameworks by running 'xcodebuild install'. Kare Morstol 2015-11-26 23:37:27 +01:00
  • 12fb5b2a5c Remove errant space. v2.0b1 Kare Morstol 2015-11-24 21:16:25 +01:00
  • 3eb8a72981 Update to 2.1 in .swift-version . Kare Morstol 2015-11-23 20:35:42 +01:00
  • d2064aeef3 Use '+' to append strings to NSUrls instead of '/' . Kare Morstol 2015-11-20 00:55:41 +01:00
  • 280f9e631e Change flatmap to map. Because ‘open’ doesn't return an optional. Kare Morstol 2015-11-12 23:29:43 +01:00
  • 53feebe0e2 Readme: add example. Kare Morstol 2015-11-12 02:20:48 +01:00
  • d9ff7a5884 Simplify main.arguments. Kare Morstol 2015-11-11 20:55:32 +01:00
  • 8b6e6f1ed6 Exchange main.name with main.path. Kare Morstol 2015-11-11 20:38:58 +01:00
  • b5448f485a Cleanup code with guard. Kare Morstol 2015-11-11 03:41:38 +01:00
  • 3554bb4ef8 Simplify SwiftShellTests/Scripts/print_linenumbers.swift . Kare Morstol 2015-11-10 21:06:47 +01:00
  • a7b7033383 Remove a couple of double spaces. Kare Morstol 2015-11-09 23:53:12 +01:00
  • 869eb69963 Readme: fill out ‘Usage' section. Kare Morstol 2015-11-09 23:51:39 +01:00
  • a7a68866a1 Use $SWIFTSHELL_FRAMEWORK_PATH instead of $DYLD_FRAMEWORK_PATH in the swiftshell launcher script. v1.1 Kare Morstol 2015-11-09 21:45:54 +01:00
  • 4f9e90fe62 Merge branch 'master' of https://github.com/kareman/SwiftShell Kare Morstol 2015-11-09 21:53:19 +01:00
  • aaa3b78d34 Readme: clarify how to set up a swift script file. Kare Morstol 2015-11-09 21:52:30 +01:00
  • 4da7c5b668 Use $SWIFTSHELL_FRAMEWORK_PATH instead of $DYLD_FRAMEWORK_PATH in the swiftshell launcher script. Kare Morstol 2015-11-09 21:45:54 +01:00
  • 78d8492c66 Enable testability and only build active architecture. Kare Morstol 2015-11-09 20:11:55 +01:00
  • 1f07d40f04 Make error messages more concise and to the point. Kare Morstol 2015-10-29 00:21:31 +01:00
  • 6065d0226f Add a trailing / to ‘main.currentdirectory’ too. Kare Morstol 2015-10-19 02:24:45 +02:00
  • cab35b4078 Add a trailing / to ‘main.tempdirectory’. Kare Morstol 2015-10-18 23:44:22 +02:00
  • 70319b54db Update test scripts for SwiftShell 2.0. Kare Morstol 2015-10-16 03:52:47 +02:00
  • b447059e3e Add ‘open’ functions for writing to files. Kare Morstol 2015-10-16 03:30:44 +02:00
  • 1d07e1db41 Add main.tempdirectory . Kare Morstol 2015-10-16 02:10:21 +02:00
  • 796af16d1a Add 'open' functions for reading files. Kare Morstol 2015-10-15 23:05:20 +02:00
  • f1ef868d96 Set deployment target to OS X 10.9. Kare Morstol 2015-10-14 19:04:19 +02:00
  • 2de04312b5 Test using streams with ‘print’. Kare Morstol 2015-10-07 20:09:13 +02:00
  • 93809fa694 Enable strings to run commands using themselves as standard input. Kare Morstol 2015-10-07 18:48:04 +02:00
  • 99df0ddf19 Enable ReadableStream to run commands using itself as stdin. Kare Morstol 2015-10-07 17:41:51 +02:00
  • 236a424190 Make AsyncShellTask's stdin and stderror ReadableStreams too. Kare Morstol 2015-10-07 17:31:04 +02:00
  • 2ea2c5ccce Make shellcontext's stdin and stderror be ReadableStream and WriteableStream. Kare Morstol 2015-10-07 16:37:18 +02:00
  • 31508d338c Create ReadableStream and streams() . Kare Morstol 2015-10-07 15:33:06 +02:00
  • a521828ddb Create WriteableStream, make shellcontext.stdout into one. Kare Morstol 2015-10-07 15:09:43 +02:00
  • c3484d626f Test effects of context.currentdirectory on NSURL.baseURL . Kare Morstol 2015-10-06 18:59:03 +02:00
  • 1a6fdc7f2c Clean up documentation indentation. Kare Morstol 2015-10-06 18:30:10 +02:00
  • 6ff91b2b57 Make pathForExecutable an inner function. Kare Morstol 2015-10-06 18:25:08 +02:00
  • b7dab5666e Remove completely unnecessary double spaces. Kare Morstol 2015-10-04 20:25:39 +02:00
  • 560ea1e8ec Let 'pathForExecutable' use its context's environment. Kare Morstol 2015-10-04 20:22:39 +02:00
  • 171ba23f0b Move 'run*' commands over to protocol ShellRunnable. Kare Morstol 2015-10-04 19:50:13 +02:00
  • d4c2bbed89 Add unit tests for running commands from custom context. Kare Morstol 2015-10-04 19:22:23 +02:00
  • 604756f5b3 Add file and linenr to error messages from 'runAsync'. Kare Morstol 2015-10-02 23:37:58 +02:00
  • a9d6197aee Specify what error runAndPrint (bash bashcommand: String) can throw. Kare Morstol 2015-09-27 00:55:50 +02:00
  • e20717767b Add file and linenr to error messages from 'exit' and 'run'. Kare Morstol 2015-09-27 00:53:31 +02:00
  • f760841635 Rename setupTask to createTask. Kare Morstol 2015-09-27 00:20:17 +02:00
  • 325af43d42 Include the command when throwing ShellError.ReturnedErrorCode . Kare Morstol 2015-09-26 23:44:00 +02:00
  • 19bd97a7b0 Improve documentation and code organization. Kare Morstol 2015-09-26 21:07:39 +02:00
  • bc4f0d76ca Return exit code 127 on InAccessibleExecutable. Kare Morstol 2015-09-25 02:26:37 +02:00
  • 89e06acc72 Give 'run' and 'runAsync' much nicer errors when running inaccessible executables. Kare Morstol 2015-09-25 02:18:05 +02:00
  • e13202ad09 runAndPrint throws error when command is inaccessible. Kare Morstol 2015-09-24 02:32:41 +02:00
  • 3b6ae780bc v1.0 – Swift 2.0 Kare Morstol 2015-09-24 20:56:21 +02:00
  • a747b13228 Create struct ShellContext:ShellContextType . Kare Morstol 2015-09-23 03:33:29 +02:00
  • d2a5dc28c6 README: Add Carthage badge of compatibility. Kare Morstol 2015-09-23 02:59:52 +02:00
  • 1bb3b0fcf7 README: Add Carthage badge of compatibility. Kare Morstol 2015-09-23 02:57:24 +02:00
  • b253497f07 Let run* commands find path to executable automatically. Kare Morstol 2015-09-23 02:27:16 +02:00
  • e0a8087a98 Remove references to Carthage from test target build settings. Kare Morstol 2015-09-22 02:03:33 +02:00
  • acb1fe6cc1 Improve documentation of Context.swift . Kare Morstol 2015-09-22 01:57:44 +02:00
  • 638fb719df Make more properties of MainShellContext lazy. Kare Morstol 2015-09-22 01:56:25 +02:00
  • 1ce3f6e165 Simplify [Any].flatten() . Kare Morstol 2015-09-22 01:44:00 +02:00
  • 8c227b8fae Let run* commands take shell arguments of any type. Kare Morstol 2015-09-20 20:13:26 +02:00
  • 3f09e7498d Add [Any].flatten() . Kare Morstol 2015-09-20 20:12:42 +02:00
  • d6055c6062 Remove CatchingFire framework and add it as a single file. Kare Morstol 2015-09-19 19:09:30 +02:00
  • 5d6ec53c96 Remove SpeedTests. Belonged to SwiftShell 1. Kare Morstol 2015-09-19 18:17:24 +02:00
  • 4c09bc8d47 Let ‘main’ be a constant. Kare Morstol 2015-09-17 14:54:05 +02:00
  • 32d68a329d Fix bug in main.arguments Kare Morstol 2015-09-17 01:36:23 +02:00
  • 2342b4a44f README: spell out that SwiftShell 2.0 is a Work in Progress. Kare Morstol 2015-09-15 21:16:48 +02:00
  • 30d49418a3 Update README with links to Swift 1.2 version and SwiftShell 2.0b. Kare Morstol 2015-09-14 21:44:49 +02:00
  • 301bc4b29d Merge branch 'Swift2.0' v1.0 Kare Morstol 2015-09-14 21:11:01 +02:00
  • 04a1e03e7a Improve error handling and messages when writing and reading to/from filehandles. Kare Morstol 2015-09-14 19:48:07 +02:00
  • d49bd67109 Update README for SwiftShell 2.0 Kare Morstol 2015-09-14 17:15:31 +02:00
  • 1c2f8e4e39 Update SpeedTests for Xcode 7 GM. Kare Morstol 2015-09-09 23:30:20 +02:00
  • a222c4d15a Implement "NSURL / String" operator. Kare Morstol 2015-09-08 23:44:09 +02:00
  • f41f243630 Move everything Bash to its own file. Kare Morstol 2015-09-08 23:11:18 +02:00
  • 91abb8c47c Update test scripts. Kare Morstol 2015-09-08 18:06:49 +02:00
  • 2d368bf7d6 Remove old Xcode project and unused files. Kare Morstol 2015-09-08 18:04:37 +02:00
  • 509f762050 Enable whole module optimisation for release builds. Kare Morstol 2015-09-08 15:49:21 +02:00
  • a05d7701e1 Turn ‘main’ into a final class. Kare Morstol 2015-09-08 00:39:05 +02:00
  • c8c70882ce Improve documentation for run* . Kare Morstol 2015-09-08 00:28:08 +02:00
  • 9cfd7e5c39 Add run*(executable: String, _ args: [String]). Make global versions of main.run* . Kare Morstol 2015-09-07 23:58:50 +02:00
  • 93922a4101 Fix main.name . Kare Morstol 2015-09-07 22:17:37 +02:00
  • bacdbddddc Implement ShellContextType.runAndPrint . Kare Morstol 2015-09-06 20:25:52 +02:00
  • 4a3da01d5d Move finish() to NSTask. Kare Morstol 2015-09-06 18:18:36 +02:00
  • c6975aefd1 Make AsyncShellTask.finish return self. Kare Morstol 2015-09-03 18:25:28 +02:00
  • de708331a8 Add 'ShellError', which may be thrown from completed shell commands. Kare Morstol 2015-09-03 17:45:28 +02:00