Commit Graph
564 Commits
Author SHA1 Message Date
Kare Morstol 95feddb681 Remove Process extensions for Linux.
It seems they have been added to Swift Foundation.
2020-07-10 19:38:47 +02:00
Kare Morstol 4729769743 Use built-in XCTest error testing. 2020-07-10 19:38:47 +02:00
Kare Morstol 303dca53a3 Remove Tests/LinuxMain.swift, use '--enable-test-discovery' on Linux instead. 2020-07-10 19:38:47 +02:00
Kare Morstol 45a21f0b5b Remove custom nullDevice.
Turns out my implementation of nullDevice in SwiftFoundation was merged four years ago and I forgot about it.
2020-07-10 19:38:47 +02:00
Kare Morstol 4dd3d8d28a Merge pull request #84 from kareman/Swift5.3
Support Swift 5.3, "drop" iOS
2020-07-10 19:35:04 +02:00
Kare Morstol 647b7375bf Set Swift version to 5.2.4. 2020-07-08 18:04:39 +02:00
Kare Morstol 16227a283d Add GitHub CI tests (#85)
* Set Swift version to 5.2.4.
* Test Cocoapod
* Delete .travis.yml
2020-07-08 17:56:47 +02:00
Kare Morstol 7c816d6b43 Readme: Remove mentions of FileSmith.
FileSmith and SwiftShell no longer cooperate specifically.
2020-07-08 17:00:17 +02:00
Kare Morstol c6006f1adf Set Swift version to 5.2.2.
The latest version is 5.2.4, but that isn't currently supported in the CI for Linux.
2020-07-08 16:47:59 +02:00
Kare Morstol 4f4fdbc458 Remove "support" for iOS.
Running shell commands has never worked on iOS, it was just a hack to enable kareman/FileSmith (which _does_ work on iOS) and SwiftShell to use the same `*Stream` protocols.
2020-07-08 16:45:37 +02:00
Kare Morstol bfddee7c95 Compile on Swift 5.3 2020-07-08 15:25:21 +02:00
Kare Morstol 4da45e4e6f Readme: update errors example 2020-07-01 23:21:29 +02:00
Kare Morstol fb7fc2c9ad Release 5.0.1 5.0.1 2019-10-02 20:08:45 +02:00
Kare Morstol 031cd65cae Merge pull request #76 from kareman/Support_older_macOS
Support older macOS
2019-08-11 17:33:56 +02:00
Kare Morstol fc130c441d Fix indentation, remove platform restriction from Package.swift. 2019-08-11 16:07:51 +02:00
KarlZeo b5c925dfcc support old macOS version
Signed-off-by: KarlZeo <nieyujiang@gmail.com>
2019-08-11 16:07:51 +02:00
Kare Morstol 4a104a5aea fix framework build setting from corrupting xcode archive type. 2019-08-11 15:22:42 +02:00
Kare Morstol 8cf0ca7604 Readme: include "platforms: [.macOS(.v10_13)]," under Swift Package Manager. 2019-05-13 14:17:57 +02:00
Kare Morstol b1114524ee Readme: put back the build status tag
Travis has updated their macOS image with the final version of Xcode 10.2
2019-04-04 20:02:25 +02:00
Kare Morstol 1a9cfc79be Readme: replace the last remaining http with https 2019-03-28 16:21:40 +01:00
Kare Morstol 22438f287e Readme: remove Travis badge as it is always failing now.
Until they update their environment to the final release of Xcode 10.2.
2019-03-28 16:01:25 +01:00
Kare Morstol 2614f86520 swiftshell-init: update generated Package.swift. 5.0.0 2019-03-27 23:17:30 +01:00
Kare Morstol f200bfe369 Release version 5.0.0 2019-03-27 23:01:08 +01:00
Kare Morstol 0488a479d7 'exit' functions only print filename and line number in debug builds. 2019-03-27 22:22:36 +01:00
Kare Morstol 45e4b83481 Travis: print Swift version. 2019-03-27 17:43:32 +01:00
Kare Morstol d0679c800f Swift package manager: specify minimum macOS and Swift versions 2019-03-26 18:30:26 +01:00
Kare Morstol 74e74536c8 Work around Swift Foundation returning different error code when executable is unavailable.
This way "launchThrowably" returns the same error code on macOS and Linux when the executable can not be executed.

https://travis-ci.org/kareman/SwiftShell/jobs/511594470#L575

SwiftShell/Tests/SwiftShellTests/Command_Tests.swift:271: error: RunAndPrint_Tests.testThrowsErrorOnInaccessibleExecutable : failed - Caught error <The operation could not be completed>, but not of the expected type and value <Could not execute file at path 'notachance'.>.
2019-03-26 18:22:20 +01:00
Kare Morstol 7975a37212 Travis: only use swiftenv if not on macOS. 2019-03-26 18:06:11 +01:00
Kare Morstol 2e4c18ea72 Travis: use osx_image: xcode10.2. I hope it exists. 2019-03-26 17:51:38 +01:00
Kare Morstol 20cd8cc2c9 Don't verify file is executable before running it.
Also remove unneeded Equatable implementation.
2019-03-26 17:41:56 +01:00
Kare Morstol 153bfc58d2 Update to Swift 5 2019-03-26 16:54:01 +01:00
Kare Morstol 0b1fe3aed3 Set minimum macOS version to 10.13.
Because it is using methods on Process that were added in 10.13.
2019-03-26 16:49:07 +01:00
Jacob Williams c109df09c4 Forgot to remove the unwanted deprecation warning 2019-03-26 08:34:55 -06:00
Jacob Williams 3cf7a9407c Upgrade to Swift 5! 2019-03-26 08:34:06 -06:00
Kare Morstol c173a81f61 Readme: update links to nottoobadsoftware.com 2019-03-13 22:47:36 +01:00
Kare Morstol beebe43c98 Release version 4.1.2. 4.1.2 2018-10-03 21:16:26 +02:00
Kare Morstol 62da383972 RunOutput(launch:): rename parameter to ‘command’, add documentation.
Removed
```swift
	group.enter()
	defer {
		group.leave()
	}
```

because no matter what happens, "group.leave()" will be called when exiting this scope. As such it serves no purpose. We still need to use ‘group’ for the asynchronous reading of standard error though.
2018-10-03 21:02:49 +02:00
Kare Morstol b69b6ff877 Make RunOutput.stdout and .stderror publicly immutable again.
For some reason I apparently thought that lazy properties are always immutable. I have no idea why.
2018-10-03 19:17:53 +02:00
Kare Morstol d1f8aadca2 Travis: use Xcode 10, and run 'xcodebuild test'. 2018-10-03 18:40:48 +02:00
Kare Morstol d016613743 Update to Swift 4.2. 2018-10-03 18:03:12 +02:00
Kare Morstol 9ae82dc6db Move AsyncCommand.launch back to RunOutput(launch:).
Since AsyncCommand.launch was private and only used by RunOutput.
2018-10-03 17:52:36 +02:00
sohocoke 32e5d5a159 Async command launch (#69)
AsyncCommand#launch is an asynchronous method that obviates race conditions when reading command output concurrently.
2018-09-27 01:34:55 +02:00
Kare Morstol 02c8ae6a5d Set version to 4.1.1 4.1.1 2018-07-31 17:57:04 +02:00
Kare Morstol 97e68ec5bb Remove swiftlint build phase.
Was inactive anyway.
2018-07-31 17:51:30 +02:00
Kare Morstol 3f335df4d4 CocoaPods: version number must include patch number. 2018-04-18 22:29:07 +02:00
Kare Morstol aebc06a649 Readme: update with new functionality.
Also fix some other stuff.
4.1.0
2018-04-18 00:52:44 +02:00
Kare Morstol 69eccb6cad Make main.stdout.encoding default to main.encoding. 2018-04-17 23:46:26 +02:00
Kare Morstol c8c07f74c1 Add AsyncCommand.onCompletion override. 2018-04-17 23:37:32 +02:00
Kare Morstol aff9523a50 Improve documentation and formatting.
Use present tense in documentation.
Add missing documentation.
Move code where it should be.
Improve line breaks.
Simplify ReadableStream.onOutput (Stream.swift).
2018-04-17 23:35:12 +02:00
Kare Morstol 97d6b5f6a6 CocoaPods: set version to 4.1. 4.1.0-beta.2 4.1.0-beta2 2018-04-13 22:56:48 +02:00