An open API service indexing awesome lists of open source software.

https://github.com/vvmnnnkv/shell

Utility function to execute shell command
https://github.com/vvmnnnkv/shell

shell swift swiftpm

Last synced: 2 months ago
JSON representation

Utility function to execute shell command

Awesome Lists containing this project

README

          

# Shell

Execute command from Swift:

```swift

import Shell

// dull function
let res = shell("/bin/ls", ["-la"])
print("output:\n\(res.output)\n\nexit code: \(res.exitCode)")

// string extension
print("/bin/ls".shell("-la"))

// bang prefix func
!"ls -la"

```