Skip to content
This repository was archived by the owner on May 1, 2023. It is now read-only.

Commit fb09159

Browse files
committed
Update Shellout -> PLCommand
1 parent 4d45cd2 commit fb09159

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

Package.resolved

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

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ let package = Package(
1111
],
1212
dependencies: [
1313
.package(url: "https://github.com/johnsundell/files.git", from: "4.2.0"),
14-
.package(url: "https://github.com/JohnSundell/ShellOut.git", from: "2.3.0")
14+
.package(url: "https://github.com/Pelagornis/PLCommand.git", from: "0.1.0")
1515
],
1616
targets: [
1717
.target(
1818
name: "XcodeSnippet",
1919
dependencies: [
2020
.product(name: "Files", package: "files"),
21-
.product(name: "ShellOut", package: "ShellOut")
21+
.product(name: "PLCommand", package: "PLCommand")
2222
]
2323
),
2424
.executableTarget(
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
import Foundation
2-
import ShellOut
2+
import PLCommand
33
import Files
44

55
struct ProjectRunner {
66
let folder: Folder
77

88
func generate() throws {
99
try folder.existenceSwiftPackage()
10-
11-
try shellOut(
12-
to: "swift run",
13-
at: folder.path,
14-
outputHandle: FileHandle.standardOutput,
15-
errorHandle: FileHandle.standardError
16-
)
10+
PLCommand.Bash.run("cd \(folder.path) && swift run")
1711
}
1812
}
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
import XCTest
22
import XcodeSnippetCLICore
3-
import Files
4-
import ShellOut
3+
4+
final class XcodeSnippetTests: XCTestCase {
5+
6+
override class func setUp() {
7+
}
8+
9+
func xcodeSnippet() throws {
10+
11+
}
12+
}
513

614

0 commit comments

Comments
 (0)