Created
September 7, 2025 10:21
-
-
Save jacobsapps/8bb41710a403c3d88c6a7e78e2c7304d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/swift | |
| import Subprocess | |
| let result = try await run( | |
| .name("ls"), | |
| arguments: ["-1"], | |
| output: .string(limit: 1 << 20) | |
| ) | |
| print(result.standardOutput ?? "") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment