File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 39
39
[Parameter (ParameterSetName = ' BuildAll' )]
40
40
[switch ] $Catalog
41
41
42
-
43
42
)
44
43
45
44
BEGIN {
@@ -61,10 +60,16 @@ END {
61
60
$setName = $PSCmdlet.ParameterSetName
62
61
switch ( $setName ) {
63
62
" BuildAll" {
64
- Start-ScriptAnalyzerBuild - All - Configuration $Configuration - Verbose:$verboseWanted
63
+ $buildArgs = @ {
64
+ All = $true
65
+ Configuration = $Configuration
66
+ Verbose = $verboseWanted
67
+ Catalog = $false
68
+ }
65
69
if ( $Catalog ) {
66
- $catalogFile = New-Catalog
70
+ $buildArgs [ ' Catalog ' ] = $true
67
71
}
72
+ Start-ScriptAnalyzerBuild @buildArgs # -All -Configuration $Configuration -Verbose:$verboseWanted
68
73
}
69
74
" BuildDocumentation" {
70
75
Start-ScriptAnalyzerBuild - Documentation - Verbose:$Verbose
Original file line number Diff line number Diff line change @@ -186,6 +186,9 @@ function Start-ScriptAnalyzerBuild
186
186
foreach ($psVersion in 3 .. 7 ) {
187
187
Start-ScriptAnalyzerBuild - Configuration $Configuration - PSVersion $psVersion - Verbose:$verboseWanted
188
188
}
189
+ if ( $Catalog ) {
190
+ New-Catalog - Location $script :destinationDir
191
+ }
189
192
return
190
193
}
191
194
@@ -321,8 +324,6 @@ function Start-ScriptAnalyzerBuild
321
324
Copy-Item - path $nsoft - Destination $destinationDirBinaries
322
325
}
323
326
324
- New-Catalog - Location $script :destinationDir
325
-
326
327
Pop-Location
327
328
}
328
329
}
You can’t perform that action at this time.
0 commit comments