Swiftpack.co - x13a/authorization-swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by x13a.
x13a/authorization-swift 0.1.2
Swift wrapper on AuthorizationExecuteWithPrivileges.
⭐️ 11
🕓 2 years ago
.package(url: "https://github.com/x13a/authorization-swift.git", from: "0.1.2")

authorization-swift

Swift wrapper on AuthorizationExecuteWithPrivileges.

Example

import Authorization

func main() throws {
    let fileHandler = try Authorization.executeWithPrivileges("/bin/ls /").get()
    print(String(bytes: fileHandler.readDataToEndOfFile(), encoding: .utf8)!)
}

main()

GitHub

link
Stars: 11
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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