Skip to content

Commit 7eadd18

Browse files
committed
increase clarity of verbose output
1 parent 54fd25b commit 7eadd18

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ Package.resolved
1010
.serverless
1111
.vscode
1212
Makefile
13+
.devcontainer

Plugins/AWSLambdaPackager/Plugin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct AWSLambdaPackager: CommandPlugin {
7474
"\(archives.count > 0 ? archives.count.description : "no") archive\(archives.count != 1 ? "s" : "") created"
7575
)
7676
for (product, archivePath) in archives {
77-
print(" * \(product.name) at \(archivePath)")
77+
print(" * \(product.name) at \(archivePath.path())")
7878
}
7979
}
8080

Plugins/AWSLambdaPackager/PluginUtils.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ struct Utils {
2828
) throws -> String {
2929
if logLevel >= .debug {
3030
print("\(executable.path()) \(arguments.joined(separator: " "))")
31+
if let customWorkingDirectory {
32+
print("Working directory: \(customWorkingDirectory.path())")
33+
}
3134
}
3235

3336
let fd = dup(1)
@@ -85,8 +88,8 @@ struct Utils {
8588
process.standardError = pipe
8689
process.executableURL = executable
8790
process.arguments = arguments
88-
if let workingDirectory = customWorkingDirectory {
89-
process.currentDirectoryURL = URL(fileURLWithPath: workingDirectory.path())
91+
if let customWorkingDirectory {
92+
process.currentDirectoryURL = URL(fileURLWithPath: customWorkingDirectory.path())
9093
}
9194
process.terminationHandler = { _ in
9295
outputQueue.async {

0 commit comments

Comments
 (0)