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.
2 parents 594f6d7 + 0c43276 commit 94f4664Copy full SHA for 94f4664
Sources/Task.swift
@@ -60,7 +60,11 @@ extension String {
60
61
extension Task: CustomStringConvertible {
62
public var description: String {
63
- return "\(launchPath) \(arguments.map { $0.escapingWhitespaces }.joined(separator: " "))"
+ var message = "\(launchPath) \(arguments.map { $0.escapingWhitespaces }.joined(separator: " "))"
64
+ if let workingDirectory = workingDirectoryPath {
65
+ message += " (launched in \(workingDirectory))"
66
+ }
67
+ return message
68
}
69
70
0 commit comments