Skip to content

Commit 78e3db5

Browse files
committed
Disable print on initial command
1 parent e0094e2 commit 78e3db5

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

Plugins/VercelPackager/Shell.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,14 @@ public struct Shell {
3737
executable: Path,
3838
arguments: [String],
3939
environment: [String: String] = [:],
40-
customWorkingDirectory: Path? = .none
40+
customWorkingDirectory: Path? = .none,
41+
printCommand: Bool = true
4142
) throws -> String {
42-
print("")
43-
print("\(executable.string) \(arguments.joined(separator: " "))")
44-
print("")
43+
if printCommand {
44+
print("")
45+
print("\(executable.string) \(arguments.joined(separator: " "))")
46+
print("")
47+
}
4548

4649
_ = spawnQueue.sync {
4750
spawnedProcesses.insert(process)

Plugins/VercelPackager/VercelOutput.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ public struct VercelOutput {
130130
projectDirectory.appending([".build", "checkouts", "Vercel", "Plugins", "VercelPackager", "Server", "server.cjs"]).string,
131131
port
132132
],
133-
environment: ["SWIFT_PROJECT_DIRECTORY": projectDirectory.string]
133+
environment: ["SWIFT_PROJECT_DIRECTORY": projectDirectory.string],
134+
printCommand: false
134135
)
135136
}
136137
}

0 commit comments

Comments
 (0)