Kare Morstol
caea066468
Improve documentation for "run".
3.0.0-beta.14
2017-04-05 18:34:26 +02:00
Kare Morstol
33019fb307
Replace all uses of the word "Task".
...
with "command" or "process".
2017-04-05 18:29:49 +02:00
Kare Morstol
2d61e881ec
Make unavailable run() -> String method signatures identical to the available one
...
Otherwise using 'run' without capturing the output makes Swift think we are trying to run the unavailable ones that return a String.
2017-04-05 18:29:49 +02:00
Kare Morstol
9024477468
Ensure all 'run' functions have 'combineOutput' parameter and none have file and line parameters.
2017-04-05 01:28:50 +02:00
Kare Morstol
c9d75bd68e
Document && and || operators.
2017-04-05 01:28:50 +02:00
Kare Morstol
de0414c6a3
Add String.lines().
2017-04-05 01:28:50 +02:00
Kare Morstol
5f40cb878f
Simplify bash run-functions, add file and line numbers to global runAsync(bash:) function.
2017-04-05 01:28:50 +02:00
Kare Morstol
72dd5d8277
Add combineOutput parameter to 'run'.
2017-04-05 01:28:50 +02:00
Kare Morstol
891422fe7c
Add RunOutput.error. Add file and line params to runAsync(bash:).
2017-04-05 01:28:50 +02:00
Kare Morstol
74077e9b06
Make RunOutput.|| and .&& public. Remove @testable from test imports.
...
The latter to avoid making the same mistake again.
2017-04-03 19:42:53 +02:00
Kare Morstol
38f3d41ca7
Also rename in LinuxMain.swift.
3.0.0-beta.13
2017-03-31 00:08:56 +02:00
Kare Morstol
4d2ed74b55
Massive renaming: avoid words Type, Task and Shell.
...
Protocols should no longer end in Type, Task has been renamed in Foundation and the word Shell is not appropriate for running commands / launching processes, it describes terminal applications and shell interpreters like bash. Which means the name SwiftShell itself is probably a misnomer but I am not about to change that now.
Also remove any mentions of SwiftShell 2.
2017-03-30 20:10:05 +02:00
Kare Morstol
ba403e8bf9
Make main's tempdirectory, arguments and path publicly immutable.
2017-03-30 13:44:15 +02:00
Kare Morstol
00edb93cb8
Auto-implement ShellRunnable for ShellContextType.
2017-03-30 13:42:06 +02:00
Kare Morstol
4cbdea39a7
Remove encoding from ShellContextType, as it has no effect there.
...
But leave it in ‘main’ as it is quite useful as a global variable.
2017-03-29 23:36:17 +02:00
Kare Morstol
bd8ceeecbc
Make RunOutput.stdout and .stderror publicly immutable.
2017-03-29 21:50:27 +02:00
Kare Morstol
85bbe2a009
Update to Swift 3.1. Travis: don't test the beta anymore.
2017-03-29 20:24:09 +02:00
Kare Morstol
755d1aa563
run() returns RunOutput instead of String. Supports || and &&.
2017-03-29 19:59:26 +02:00
Kare Morstol
03adb38f56
Update to Xcode 8.3.
...
Can't update .swift-version to 3.1 yet because of Travis and swiftenv.
2017-03-29 19:11:11 +02:00
Kare Morstol
85962c2da2
Readme: add shebang to example.
2017-03-28 12:45:12 +02:00
Kare Morstol
21a385f198
Simplify #if statement.
3.0.0-beta.12
2017-03-23 20:53:07 +01:00
Kare Morstol
3a824465c8
Travis: test on Swift 3.1 beta
...
Install Swift 3.1 first
2017-03-23 20:53:07 +01:00
Joe Smith
4c416f38a4
Swift 3.1 Correctly Removes Task ( #35 )
...
Looks like this may be fallout from https://bugs.swift.org/browse/SR-3279
2017-03-23 20:37:49 +01:00
Kare Morstol
fee47d0857
Readme: add header for Moderator and FileSmith.
2017-03-16 01:12:49 +01:00
Kare Morstol
03384130ea
Remove CocoaPods test from Travis as it only fails there.
2017-03-02 22:08:22 +01:00
Kare Morstol
89ac85208c
Readme: update CocoaPods instructions and projected Swift version for ABI instability.
2017-03-02 19:51:42 +01:00
Kare Morstol
d6feaf2606
Add test of pod spec to Travis.
2017-03-02 19:34:58 +01:00
Kare Morstol
af7399e93a
Fix up ReadableStream.onStringOutput, set framework as dependency for all unit test targets.
2017-03-02 19:15:49 +01:00
Kare Morstol
d944464578
Update podspec with iOS deployment target 9.0.
3.0.0-beta.11
2017-03-01 21:58:37 +01:00
Kare Morstol
5a78671651
Remove completely unintended and compile-breaking word.
2017-03-01 19:28:55 +01:00
Kare Morstol
a93535b390
Add CocoaPods support.
2017-03-01 19:17:43 +01:00
Kare Morstol
bcaab22767
Require encoding for FileHandle.readSome and .read. Documentation.
2017-03-01 18:25:58 +01:00
Kare Morstol
fa70e419dd
Enable building for iOS. Just the Stream part. So FileSmith can use it.
...
The rest cannot build on iOS because it uses Process.
Move the Stream files into its own directory.
3.0.0-beta.10
2017-02-28 01:45:24 +01:00
Kare Morstol
7204dbdb3a
@discardableResult declared on a function returning Void is unnecessary.
2017-02-21 22:11:54 +01:00
Kare Morstol
62780a880a
String(contentsOfFile:) not implemented on Linux, use String(contentsOfFile: encoding:) instead.
3.0.0-beta.9
2017-01-31 00:41:29 +01:00
Kare Morstol
43a726bbba
Fix testOpenForOverWritingCreatesIntermediateDirectory.
2017-01-30 20:37:13 +01:00
Kare Morstol
11b979c690
Fix AssertNoThrow silencing test failures. Cleanup test helping code.
2017-01-30 20:27:12 +01:00
Miguel Angel Quinones Garcia
93b2b36d68
Fix intermediate directories not created ( #32 )
...
* Fix intermediate directories not created
If the destination path contains nonexisting directories, the function would fail where otherwise it is expected to create all directories in the path.
* Add test for creation with intermediate directories
2017-01-30 20:13:49 +01:00
Kare Morstol
eca353d338
Rename WriteableStream to WritableStream.
...
Because that is the spelling Apple uses.
2017-01-25 18:50:56 +01:00
Kare Morstol
4145afefd8
Make the default main.stdout a StdoutStream, which uses Swift.print().
3.0.0-beta.8
2017-01-09 22:56:57 +01:00
Kare Morstol
fa8f65e13f
Make ReadableStream.lines return type prettier.
2017-01-09 22:32:47 +01:00
Kare Morstol
ce44afe306
Turn WriteableStream and ReadableStream into protocols.
...
* Remove WriteableStream.writeln, use .print instead.
* Work around compiler crash on Linux.
2017-01-09 17:43:53 +01:00
Kare Morstol
e53557624c
Update to recommended settings in Xcode 8.2.
2016-12-16 20:13:43 +01:00
Kare Morstol
6f5138e9d6
Update Swift version to 3.0.2.
2016-12-16 20:11:09 +01:00
Kare Morstol
5dd2da16f0
Remove workaround for fixed compiler bug when printing errors.
3.0.0-beta.7
2016-11-23 00:26:48 +01:00
Kare Morstol
fe81f49fb5
Make .encoding in WriteableStream and ReadableStream public and mutable.
2016-11-16 21:02:06 +01:00
Kare Morstol
3abef0d51d
Small documentation fix.
2016-11-16 21:02:06 +01:00
Kare Morstol
daf894ed2a
Readme: list functionality and mention readSome().
2016-11-16 20:43:15 +01:00
Kare Morstol
25f64feceb
Set Swift version to 3.0.1.
3.0.0-beta.6
2016-11-04 00:13:00 +01:00
Kare Morstol
f3f86c0c3b
Improve output from *Stream.debugDescription.
2016-11-04 00:10:12 +01:00