Skip to content

Commit 39d61fe

Browse files
🩹 [Patch]: Simplify JSON output for Host and PSStyle contexts by reducing depth
1 parent 1cdd5b9 commit 39d61fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎scripts/main.ps1‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ LogGroup 'Host' {
131131
}
132132

133133
LogGroup 'Host - Json' {
134-
Write-Host "$($Host | ConvertTo-Json -Depth 10)"
134+
$Host | ConvertTo-Json -Depth 3
135135
}
136136

137137
LogGroup 'MyInvocation' {
@@ -151,5 +151,5 @@ LogGroup 'PSStyle' {
151151
}
152152

153153
LogGroup 'PSStyle - Json' {
154-
Write-Host "$($PSStyle | ConvertTo-Json -Depth 10)"
154+
$PSStyle | ConvertTo-Json -Depth 3
155155
}

0 commit comments

Comments
 (0)