Skip to content

Commit a3e122e

Browse files
committed
Update to Swift 4.2
1 parent 95a473b commit a3e122e

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.1
1+
4.2

Package.resolved

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:4.1
1+
// swift-tools-version:4.2
22

33
/**
44
* ShellOut

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ print(output) // Hello world
1515
```
1616

1717
You can also easily run a series of commands at once, optionally at a given path:
18+
1819
```swift
1920
try shellOut(to: ["mkdir NewFolder", "echo \"Hello again\" > NewFolder/File"], at: "~/CurrentFolder")
2021
let output = try shellOut(to: "cat File", at: "~/CurrentFolder/NewFolder")
2122
print(output) // Hello again
2223
```
2324

2425
In case of an error, ShellOut will automatically read `STDERR` and format it nicely into a typed Swift error:
26+
2527
```swift
2628
do {
2729
try shellOut(to: "totally-invalid")

0 commit comments

Comments
 (0)