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.
workingDirectory
Process
1 parent 33ae5ab commit 22d6015Copy full SHA for 22d6015
Sources/TSCBasic/Process.swift
@@ -529,6 +529,9 @@ public final class Process {
529
let process = Foundation.Process()
530
_process = process
531
process.arguments = Array(arguments.dropFirst()) // Avoid including the executable URL twice.
532
+ if let workingDirectory {
533
+ process.currentDirectoryURL = workingDirectory.asURL
534
+ }
535
process.executableURL = executablePath.asURL
536
process.environment = environment
537
0 commit comments