We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8675701 commit 38cd16dCopy full SHA for 38cd16d
README.md
@@ -14,6 +14,13 @@ let output = try shellOut(to: "echo", arguments: ["Hello world"])
14
print(output) // Hello world
15
```
16
17
+You can also easily run a series of commands at once, optionally at a given path:
18
+```swift
19
+try shellOut(to: ["mkdir NewFolder", "echo \"Hello again\" > NewFolder/File"], at: "~/CurrentFolder")
20
+let output = try shellOut(to: "cat File", at: "~/CurrentFolder/NewFolder")
21
+print(output) // Hello again
22
+```
23
+
24
In case of an error, ShellOut will automatically read `STDERR` and format it nicely into a typed Swift error:
25
```swift
26
do {
0 commit comments