Skip to content

Commit a026547

Browse files
Allow running ad hoc and on schedule so that we can catch if something is not working.
1 parent 746c946 commit a026547

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/main.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ LogGroup 'Host' {
130130
$Host | Select-Object * | Format-List | Out-String
131131
}
132132

133+
LogGroup 'Host - Json' {
134+
Write-Host "$($Host | ConvertTo-Json -Depth 10)"
135+
}
136+
133137
LogGroup 'MyInvocation' {
134138
$MyInvocation | Select-Object * | Format-List | Out-String
135139
}
@@ -145,3 +149,7 @@ LogGroup 'PSSessionOption' {
145149
LogGroup 'PSStyle' {
146150
$PSStyle | Select-Object * | Format-List | Out-String
147151
}
152+
153+
LogGroup 'PSStyle - Json' {
154+
Write-Host "$($PSStyle | ConvertTo-Json -Depth 10)"
155+
}

0 commit comments

Comments
 (0)