Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.
/ authorization-swift Public archive

Swift wrapper on AuthorizationExecuteWithPrivileges.

License

Notifications You must be signed in to change notification settings

x13a/authorization-swift

Repository files navigation

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()

About

Swift wrapper on AuthorizationExecuteWithPrivileges.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Languages