Commit Graph

  • a63bc3b536 Changed to the MIT license. Kare Morstol 2014-11-14 19:06:30 +01:00
  • cd5abf31d8 Add version of replace method with limit. Kare Morstol 2014-11-06 00:04:51 +01:00
  • 4254364b74 This indentation was brought to you by Xcode (6.1). Kare Morstol 2014-11-05 23:57:58 +01:00
  • d557f6a5fd Add take function. Kare Morstol 2014-11-05 20:41:33 +01:00
  • b870c209e8 Add findAllmethod to String. Kare Morstol 2014-11-05 19:57:13 +01:00
  • e67f465457 Add "countOccurrencesOf" to String. Kare Morstol 2014-11-04 18:38:25 +01:00
  • 548e0740d4 Tidy up the code some more. Kare Morstol 2014-10-30 00:28:20 +01:00
  • e4272d043c Tidy up the code. Kare Morstol 2014-10-30 00:11:46 +01:00
  • e393c3d7a5 Change readme.md to use writeTo. Kare Morstol 2014-10-25 21:07:40 +02:00
  • 977888c03b Rename "write" functions to "writeTo". Kare Morstol 2014-10-25 19:17:07 +02:00
  • ba2fee299f Clarify note about crashing when optimisations are turned on. Kare Morstol 2014-10-24 22:24:09 +02:00
  • 6ce3a3ab26 Add "writeln" functions to WriteableStreamType. Kare Morstol 2014-10-24 21:05:18 +02:00
  • c04cd0d84b Add function “drop” for discarding elements from a sequence. Kare Morstol 2014-10-24 20:26:00 +02:00
  • 1b78cab9fd Add a space before result of the parameters function. Kare Morstol 2014-10-24 20:24:07 +02:00
  • 7c0048820a Enable build for running again, so SwiftShell will work in a playground. Kare Morstol 2014-10-24 20:21:55 +02:00
  • e116a29a4a Rename array to toArray. Kare Morstol 2014-10-23 19:19:11 +02:00
  • 0edc3d30dd Deactivate unnecessary builds. Kare Morstol 2014-10-23 19:11:56 +02:00
  • 1587679b0b Simplify writing to streams by using "toString". Kare Morstol 2014-10-23 02:20:32 +02:00
  • 6d588bfe29 Add "parameters" function for turning a sequence into valid parameters for a shell command, properly quoted. Kare Morstol 2014-10-23 01:41:53 +02:00
  • 991da5fd39 Add “array” function for turning a sequence into an array, used after the |> operator. Kare Morstol 2014-10-23 00:14:10 +02:00
  • 838b5ee617 Make “Debug” the default command line configuration. Kare Morstol 2014-10-22 22:12:28 +02:00
  • 8441d5e87b Add missing newline at end of file Kare Morstol 2014-10-22 21:37:50 +02:00
  • 7328c7c32e Note how release builds from 6.1 GM 2 still crash when using streams. Kare Morstol 2014-10-15 23:45:39 +02:00
  • 9136d17843 Use "|> write(standardoutput)" instead of " |> standardoutput". And support writing of sequences of strings. Kare Morstol 2014-10-15 23:03:42 +02:00
  • d09aa63f3e Add test testChainWithSequenceOfStreamsPrintedToStream. Kare Morstol 2014-10-13 22:00:53 +02:00
  • a144bc2650 Fix small typo and excessive whitespace. Kare Morstol 2014-10-09 18:36:28 +02:00
  • f56f7a0371 Use SwiftShells environment. Kare Morstol 2014-10-07 19:03:56 +02:00
  • 5cc4e33cb4 Small cleanup. Kare Morstol 2014-10-07 18:53:26 +02:00
  • 715cb3ef14 Test callswiftscriptfromswift last to test its components first. Kare Morstol 2014-10-07 18:39:05 +02:00
  • b111afa8d8 Add bash script to test all Swift scripts. Kare Morstol 2014-09-24 21:15:25 +02:00
  • c6734b8825 Add testSequenceOfStreamsToStream. Kare Morstol 2014-09-24 21:03:09 +02:00
  • c19d7537c6 Edit README to be less bad. Kare Morstol 2014-09-23 01:18:10 +02:00
  • 96eb12b9fe Enable "sequence of readable streams |> writeablestream". Kare Morstol 2014-09-18 00:51:50 +02:00
  • dd6e0d3a8f Clean up double spaces. Kare Morstol 2014-09-17 23:41:38 +02:00
  • 7810c38765 pathForTestResource still won't work outside of a method (6.1 beta 2). Kare Morstol 2014-09-17 23:40:52 +02:00
  • f0d4c34f9b Add versions of global Swift functions that can be used with the |> operator. Kare Morstol 2014-09-17 23:39:21 +02:00
  • 022bf75b76 Fix indentation of install command in README Kare Morstol 2014-09-17 17:15:12 +02:00
  • f3de629868 Include note in README on using debug builds on Xcode 6.1 Kare Morstol 2014-09-17 17:09:52 +02:00
  • 1aa06b20f5 Make debug build installable. Kare Morstol 2014-09-17 16:36:31 +02:00
  • 7ef52b67bf Move XCTestCase.pathForTestResource to a file common for all unit test targets. Kare Morstol 2014-09-15 22:17:06 +02:00
  • e296555499 Silence warning from 6.1 beta 2. Kare Morstol 2014-09-15 21:16:19 +02:00
  • 36e217c0c3 Make piping one stream to another lazy. Kare Morstol 2014-09-12 01:12:50 +02:00
  • 1d6788c08e Add readme to scripts folder. Move test area.playground. Kare Morstol 2014-09-11 21:39:35 +02:00
  • 84b1d5624d Add test script callswiftscriptfromswift.swift. Kare Morstol 2014-09-11 20:37:44 +02:00
  • 0883e76346 Shorten a line, fix strange highlighting of $. Kare Morstol 2014-09-11 19:09:03 +02:00
  • 7978b4286f Explain how to run shell commands in readme. Kare Morstol 2014-09-11 19:05:00 +02:00
  • 10f0f46c10 Add "$("shellcommand")" as a shortcut for in-line commands. Kare Morstol 2014-09-11 18:15:25 +02:00
  • 87659e8e15 Check if constant can be placed outside method now. It can't. Kare Morstol 2014-09-10 20:28:08 +02:00
  • f992418c9b Add missing newline to the end. Kare Morstol 2014-09-10 20:10:22 +02:00
  • 1d3d876f22 Move "streams" function to the module. Kare Morstol 2014-09-10 20:08:39 +02:00
  • 6bd78a11c5 Enable "String |> WriteableStreamType" again after 6.1 beta disabled it. Kare Morstol 2014-09-10 02:30:05 +02:00
  • 6240e739f9 Enabling printing something Printable, like a String, to a writable stream. Kare Morstol 2014-09-10 00:39:39 +02:00
  • 1557d16b26 Ignore *.xctimeline Kare Morstol 2014-09-09 19:39:24 +02:00
  • 676f91befb Add assertion to test. Kare Morstol 2014-09-09 19:32:02 +02:00
  • 322128be80 Merge branch 'master' of https://github.com/kareman/SwiftShell Kare Morstol 2014-09-09 19:29:47 +02:00
  • 0b38585a1e Add testReadFileLineByLine, readfilelinebyline.Swift test script and a short text file for testing. Kare Morstol 2014-09-09 18:57:39 +02:00
  • 4569705154 Add example for reading file, move installation to the end. Kare Morstol 2014-09-09 18:52:20 +02:00
  • 1238042b03 Fix code sample indentation in list. Kare Morstol 2014-09-08 19:12:38 +02:00
  • 62e48c8c63 Update README.md Kare Morstol 2014-09-08 18:48:39 +02:00
  • 2db569c9b8 Create README.md Kare Morstol 2014-09-08 18:43:08 +02:00
  • be5b2a04c6 Put quotes around "directory" in case one of them contains spaces. Kare Morstol 2014-09-08 18:37:54 +02:00
  • 680608bd45 Made all test scripts executable for everyone. Kare Morstol 2014-09-08 18:33:46 +02:00
  • 9f3a12d57c added shebang "#!/usr/bin/env swiftshell" to all test scripts. Kare Morstol 2014-09-04 19:50:37 +02:00
  • fad80f1b0e renamed swiftshell.bash to swiftshell and moved it to Div folder. Kare Morstol 2014-09-04 19:47:35 +02:00
  • a5cb221cd7 test edge case in testIterateOverStreamInPieces Kare Morstol 2014-09-04 18:33:39 +02:00
  • 8090ef8917 still crashes the compiler (beta 7). Kare Morstol 2014-09-04 18:30:30 +02:00
  • d054f4ea12 New speed test baselines. Kare Morstol 2014-09-04 18:29:01 +02:00
  • afd59bacad Script for printing the shell environment variables. Kare Morstol 2014-09-02 20:09:55 +02:00
  • 57f1d2d145 Clarify error message and exit code. Kare Morstol 2014-09-02 18:18:00 +02:00
  • ac7931d8b5 Fix typos and space for indentation. Kare Morstol 2014-09-02 18:17:20 +02:00
  • 96ab5a2070 Enable "func run (shellcommand: String) -> ReadableStreamType" to also be run by itself on a single line. Kare Morstol 2014-09-02 15:23:22 +02:00
  • f80cba9c2f Simplify header. Kare Morstol 2014-09-02 15:00:09 +02:00
  • 6ca7959311 standardinput, standardoutput, standarderror are now StreamTypes, not FileHandles. Kare Morstol 2014-09-02 14:21:26 +02:00
  • c3ae075c5c Renamed File tests to FileHandle* too. Kare Morstol 2014-08-29 02:42:20 +02:00
  • c9c4a99c2d Added Eclipse Public License header. Kare Morstol 2014-08-29 02:31:44 +02:00
  • a647c41319 Renamed File to FileHandle. Kare Morstol 2014-08-29 01:55:08 +02:00
  • 7dd3d0e1a7 Removed a lot of double spaces. I'm dictating, so they sneak in there occasionally. Kare Morstol 2014-08-29 01:50:34 +02:00
  • df723fef5a Even more documentation. Kare Morstol 2014-08-29 01:44:49 +02:00
  • e7fb2de10b Added documentation. Kare Morstol 2014-08-28 21:04:28 +02:00
  • 45bc5b2ae2 Test script for streaming to standardOutput. Renamed script. Kare Morstol 2014-08-28 20:43:11 +02:00
  • d2d2f67bfa Added playground. Excellent for rapidly testing stuff. Kare Morstol 2014-08-28 20:35:02 +02:00
  • e0122983df Added documentation. Kare Morstol 2014-08-28 20:28:13 +02:00
  • a31f018c6b Added access to environment variables, and new test script listallexecutablesinpath. Kare Morstol 2014-08-28 03:15:07 +02:00
  • 6350fda52a Something like 'run("ls") |> standardoutput' now works Kare Morstol 2014-08-28 02:17:27 +02:00
  • bd99bd1cf5 swiftshell.bash now handles script paths containing spaces. Kare Morstol 2014-08-28 01:57:13 +02:00
  • cecf62fdda Make sure a command is finished before the next begins. Kare Morstol 2014-08-28 00:33:06 +02:00
  • cf31b577bb Running "xcodebuild install" installs the framework to ~/Library/Frameworks, and doing a clean build no longer removes it. Kare Morstol 2014-08-28 00:24:02 +02:00
  • 85579f6b37 Print one stream to another: readablestream |> writablestream Kare Morstol 2014-08-28 00:21:13 +02:00
  • 5aad0cc3e4 "open" now writes to standardError and quits when opening a file fails. Kare Morstol 2014-08-28 00:12:01 +02:00
  • 1e31759b09 Scripts_Tests is under construction in a different branch Kare Morstol 2014-08-26 22:34:08 +02:00
  • 4fed65c1ab Added Eclipse license. Kare Morstol 2014-08-26 22:25:39 +02:00
  • 10f623d4c8 Added documentation. Light cleanup. Kare Morstol 2014-08-26 00:24:26 +02:00
  • d39a3c8d58 Making this executable is probably a good idea. Kare Morstol 2014-08-26 00:19:19 +02:00
  • 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. Kare Morstol 2014-08-25 22:09:24 +02:00
  • a135dd0a5d Added swiftshell.bash to actually run the Swift script files Kare Morstol 2014-08-25 22:03:08 +02:00
  • ed34a689ec ReadableStreamType inherits from Streamable. Also tried out and commented stuff that does not work in beta 6. Kare Morstol 2014-08-23 21:02:08 +02:00
  • e63494b68b Added new test file for Stream_Iteration_SpeedTests. Cleaned up. Kare Morstol 2014-08-22 21:56:24 +02:00
  • 3e35e0db13 Changed from XCTAssert to XCTAssertEqual, since that works now. Removed tests for strange apparently local bug. Kare Morstol 2014-08-22 02:18:43 +02:00
  • 660b2f9d00 Radically simplified stream(String) and stream(array/sequence). Kare Morstol 2014-08-22 01:46:27 +02:00
  • 30c1412d32 Apparently this file makes Xcode think this is a bilingual framework, and we don't want that. Kare Morstol 2014-08-21 23:40:14 +02:00