Skip to content

Commit 2aa4c4f

Browse files
committed
Clean up debug output
1 parent c128593 commit 2aa4c4f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Source/Private/InitializeBuild.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ function InitializeBuild {
2626
# GetBuildInfo reads the parameter values from the Build-Module command and combines them with the Manifest values
2727
$BuildManifest = ResolveBuildManifest $SourcePath
2828

29-
Write-Debug "BuildCommand: $($BuildCommandInvocation.MyCommand | Out-String)"
29+
Write-Debug "BuildCommand: $(
30+
@(
31+
@($BuildCommandInvocation.MyCommand.Name)
32+
@($BuildCommandInvocation.BoundParameters.GetEnumerator().ForEach{ "-{0} '{1}'" -f $_.Key, $_.Value })
33+
) -join ' ')"
3034
$BuildInfo = GetBuildInfo -BuildManifest $BuildManifest -BuildCommandInvocation $BuildCommandInvocation
3135

3236
# Finally, add all the information in the module manifest to the return object

0 commit comments

Comments
 (0)