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

Commit

Permalink
Update Shellout -> PLCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
jihoonahn committed Feb 11, 2023
1 parent 4d45cd2 commit fb09159
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
8 changes: 4 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
}
},
{
"identity" : "shellout",
"identity" : "plcommand",
"kind" : "remoteSourceControl",
"location" : "https://github.com/JohnSundell/ShellOut.git",
"location" : "https://github.com/Pelagornis/PLCommand.git",
"state" : {
"revision" : "e1577acf2b6e90086d01a6d5e2b8efdaae033568",
"version" : "2.3.0"
"revision" : "cca5f606dd4cf5b3a8a94d43b89b0f0215537f01",
"version" : "0.1.0"
}
}
],
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/johnsundell/files.git", from: "4.2.0"),
.package(url: "https://github.com/JohnSundell/ShellOut.git", from: "2.3.0")
.package(url: "https://github.com/Pelagornis/PLCommand.git", from: "0.1.0")
],
targets: [
.target(
name: "XcodeSnippet",
dependencies: [
.product(name: "Files", package: "files"),
.product(name: "ShellOut", package: "ShellOut")
.product(name: "PLCommand", package: "PLCommand")
]
),
.executableTarget(
Expand Down
10 changes: 2 additions & 8 deletions Sources/XcodeSnippetCLICore/ProjectRunner.swift
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
import Foundation
import ShellOut
import PLCommand
import Files

struct ProjectRunner {
let folder: Folder

func generate() throws {
try folder.existenceSwiftPackage()

try shellOut(
to: "swift run",
at: folder.path,
outputHandle: FileHandle.standardOutput,
errorHandle: FileHandle.standardError
)
PLCommand.Bash.run("cd \(folder.path) && swift run")
}
}
12 changes: 10 additions & 2 deletions Tests/XcodeSnippetTests/CLITests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import XCTest
import XcodeSnippetCLICore
import Files
import ShellOut

final class XcodeSnippetTests: XCTestCase {

override class func setUp() {
}

func xcodeSnippet() throws {

}
}


0 comments on commit fb09159

Please sign in to comment.