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

Latest commit

 

History

History
16 lines (11 loc) · 316 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 316 Bytes

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