Skip to content

Commit 869e719

Browse files
🩹 [Patch]: Remove ErrorView configuration handling from init script
1 parent d875fdb commit 869e719

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

scripts/init.ps1

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,6 @@ param()
44
begin {
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

269
process {

0 commit comments

Comments
 (0)