Swiftpack.co -  elegantchaos/Runner as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Subprocess support for Swift
.package(url: "https://github.com/elegantchaos/Runner.git", from: "v1.3.1")

Test results Latest release swift 5.1 shield swift 5.2 shield swift 5.3 shield swift dev shield Platforms: macOS, Linux


Some basic support for executing subprocesses, using Foundation.Process.


let url = /* url to the executable */
let runner = Runner(for: url)

// execute and wait for results
let result = runner.sync(["some", "arguments"])

// run in a different working directory
runner.cwd = /* url to the directory */
let _ = runner.sync(["blah"])

// transfer execution to the subprocess

Path Lookup

Rather than supplying the path to the executable explicitly, you can instead supply just a name, and have it looked up using the $PATH environment variable.

let runner = Runner(command: "name")


Stars: 1
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

2 weeks ago

Perform buffer operations on a serial queue to prevent race conditions. Don't run tests on iOS.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API