Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 344 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 344 Bytes

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