File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 44begin {
55 $scriptName = $MyInvocation.MyCommand.Name
66 Write-Debug " [$scriptName ] - Start"
7- $PSStyle.OutputRendering = ' Ansi'
8-
9- # Configure ErrorView based on input parameter
10- if (-not [string ]::IsNullOrEmpty($env: PSMODULE_GITHUB_SCRIPT_INPUT_ErrorView )) {
11- $validViews = @ (' NormalView' , ' CategoryView' , ' ConciseView' , ' DetailedView' )
12- $errorViewSetting = $env: PSMODULE_GITHUB_SCRIPT_INPUT_ErrorView
13-
14- # Simply find the first validView that matches the input using wildcards
15- $matchedView = $validViews | Where-Object { $_ -like " *$errorViewSetting *" } | Select-Object - First 1
16-
17- if ($matchedView ) {
18- Write-Debug " [$scriptName ] - Input [$errorViewSetting ] matched with [$matchedView ]"
19- $ErrorView = $matchedView
20- } else {
21- Write-Warning " [$scriptName ] - Invalid ErrorView value: [$errorViewSetting ]. Using default."
22- }
23- }
247}
258
269process {
You can’t perform that action at this time.
0 commit comments