Skip to content

Swift wrapper on AuthorizationExecuteWithPrivileges.

License

Notifications You must be signed in to change notification settings

slidoapp/authorization-swift

 
 

Repository files navigation

authorization-swift

Swift wrapper on AuthorizationExecuteWithPrivileges.

Example

import Authorization

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

main()

About

Swift wrapper on AuthorizationExecuteWithPrivileges.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 100.0%