/swift-pawn

Swift implementation for easy fork + exec.

Primary LanguageSwiftMIT LicenseMIT

Build Status

SwiftPawn

Swift implementation for easy fork + exec. This implementation is Foundation-free.

Usage

Add Dependency

.package(url: "https://github.com/hanjoes/Termbo", from: "0.1.0")

API Usage

do {
    let (status, out, err) = try SwiftPawn.execute(command: "git", arguments: ["git", "status"])
} catch {
    print(error)
}