11# LsiGitCheckout Module
22# Contains all function definitions for LsiGitCheckout tool
3- # Version 8.0.0
3+ # Version 8.0.1
44
55# Requires -Version 7.6
66
77# Module-scoped state variables
8- $script :Version = " 8.0.0 "
8+ $script :Version = " 8.0.1 "
99$script :ScriptPath = " "
1010$script :ErrorFile = " "
1111$script :DebugLogFile = " "
@@ -226,7 +226,7 @@ function Write-Log {
226226 }
227227}
228228
229- function Parse -VersionPattern {
229+ function ConvertTo -VersionPattern {
230230 <#
231231 . SYNOPSIS
232232 Parses a version pattern and determines its type and constraints
@@ -410,7 +410,7 @@ function Select-VersionFromIntersection {
410410 return $selected
411411}
412412
413- function Parse -RepositoryVersions {
413+ function Get -RepositoryVersions {
414414 <#
415415 . SYNOPSIS
416416 Parses all repository tags using the specified regex pattern to extract SemVer versions
@@ -539,7 +539,7 @@ function Format-SemVersion {
539539 return " $ ( $Version.Major ) .$ ( $Version.Minor ) .$ ( $Version.Build ) "
540540}
541541
542- function Validate -DependencyConfiguration {
542+ function Test -DependencyConfiguration {
543543 <#
544544 . SYNOPSIS
545545 Validates that repository configuration hasn't changed in incompatible ways
@@ -981,7 +981,7 @@ function Get-GitTagDates {
981981 }
982982}
983983
984- function Sort -TagsByDate {
984+ function Resolve -TagsByDate {
985985 param (
986986 [array ]$Tags ,
987987 [hashtable ]$TagDates ,
@@ -1183,7 +1183,7 @@ function Get-TagUnion {
11831183 }
11841184
11851185 $allTags = @ ($unionSet.Keys )
1186- $sortedUnion = Sort - TagsByDate - Tags $allTags - TagDates $TagDates - RepositoryUrl $RepositoryUrl - Context " union calculation"
1186+ $sortedUnion = Resolve -TagsByDate - Tags $allTags - TagDates $TagDates - RepositoryUrl $RepositoryUrl - Context " union calculation"
11871187
11881188 Write-Log " Temporal union result: $ ( $sortedUnion -join ' , ' ) " - Level Debug
11891189 return $sortedUnion
@@ -1436,7 +1436,7 @@ function Update-RepositoryDictionary {
14361436 # If repository exists, validate configuration hasn't changed
14371437 if ($script :RepositoryDictionary.ContainsKey ($repoUrl )) {
14381438 Invoke-WithErrorContext - Context " Validating configuration for existing repository: $repoUrl " - ScriptBlock {
1439- Validate - DependencyConfiguration - NewRepo $Repository - ExistingRepo $script :RepositoryDictionary [$repoUrl ]
1439+ Test -DependencyConfiguration - NewRepo $Repository - ExistingRepo $script :RepositoryDictionary [$repoUrl ]
14401440 }
14411441 }
14421442
@@ -1514,7 +1514,7 @@ function Update-RepositoryDictionary {
15141514 $union
15151515 } elseif ($apiCompatibleTags ) {
15161516 # Use temporal sorting for API compatible tags
1517- $sorted = Sort - TagsByDate - Tags $apiCompatibleTags - TagDates $tagDates - RepositoryUrl $repoUrl
1517+ $sorted = Resolve -TagsByDate - Tags $apiCompatibleTags - TagDates $tagDates - RepositoryUrl $repoUrl
15181518 $sorted
15191519 } else {
15201520 @ ($existingTag , $tag ) | Select-Object - Unique
@@ -1599,7 +1599,7 @@ function Update-SemVerRepository {
15991599 }
16001600
16011601 try {
1602- $parsedPattern = Parse - VersionPattern - VersionPattern $versionPattern
1602+ $parsedPattern = ConvertTo -VersionPattern - VersionPattern $versionPattern
16031603 Write-Log " Parsed version pattern '$versionPattern ' as type: $ ( $parsedPattern.Type ) " - Level Debug
16041604 }
16051605 catch {
@@ -1987,7 +1987,7 @@ function Invoke-GitCheckout {
19871987 $repoDict = $script :RepositoryDictionary [$repoUrl ]
19881988
19891989 # Parse all versions from tags
1990- $parseResult = Parse - RepositoryVersions - RepoPath $absoluteBasePath `
1990+ $parseResult = Get -RepositoryVersions - RepoPath $absoluteBasePath `
19911991 - VersionRegex $repoDict.VersionRegex
19921992
19931993 $repoDict.ParsedVersions = $parseResult.ParsedVersions
@@ -2250,7 +2250,7 @@ function Invoke-GitCheckout {
22502250 }
22512251}
22522252
2253- function Process -DependencyFile {
2253+ function Invoke -DependencyFile {
22542254 param (
22552255 [string ]$DependencyFilePath ,
22562256 [int ]$Depth ,
@@ -2458,7 +2458,7 @@ function Process-DependencyFile {
24582458 $checkedOutRepos = @ ()
24592459 }
24602460
2461- Write-Log " Process -DependencyFile returning $ ( $checkedOutRepos.Count ) repositories for recursive processing" - Level Debug
2461+ Write-Log " Invoke -DependencyFile returning $ ( $checkedOutRepos.Count ) repositories for recursive processing" - Level Debug
24622462 return , $checkedOutRepos # The comma ensures we return an array
24632463 }
24642464 catch {
@@ -2467,7 +2467,7 @@ function Process-DependencyFile {
24672467 }
24682468}
24692469
2470- function Process -RecursiveDependencies {
2470+ function Invoke -RecursiveDependencies {
24712471 param (
24722472 [array ]$CheckedOutRepos ,
24732473 [string ]$DefaultDependencyFileName ,
@@ -2516,7 +2516,7 @@ function Process-RecursiveDependencies {
25162516 # Process nested dependencies using the DEFAULT dependency file name
25172517 # Custom dependency file settings are isolated to the current repository only
25182518 # Pass the repository root path for correct relative path resolution
2519- $newRepos = Process - DependencyFile - DependencyFilePath $customDependencyFilePath - Depth $targetDepth - CallingRepositoryRootPath $repoPath
2519+ $newRepos = Invoke -DependencyFile - DependencyFilePath $customDependencyFilePath - Depth $targetDepth - CallingRepositoryRootPath $repoPath
25202520 $newlyCheckedOutRepos += $newRepos
25212521 } else {
25222522 Write-Log " No dependency file found at: $customDependencyFilePath " - Level Debug
@@ -2528,7 +2528,7 @@ function Process-RecursiveDependencies {
25282528 # Recursively process newly checked out repositories
25292529 # Use the default dependency file name for all recursive processing
25302530 if ($newlyCheckedOutRepos.Count -gt 0 ) {
2531- Process - RecursiveDependencies - CheckedOutRepos $newlyCheckedOutRepos - DefaultDependencyFileName $DefaultDependencyFileName - CurrentDepth $targetDepth
2531+ Invoke -RecursiveDependencies - CheckedOutRepos $newlyCheckedOutRepos - DefaultDependencyFileName $DefaultDependencyFileName - CurrentDepth $targetDepth
25322532 } else {
25332533 Write-Log " Recursive processing complete - no more nested dependencies found" - Level Info
25342534 }
@@ -2810,14 +2810,14 @@ Export-ModuleMember -Function @(
28102810 ' Write-ErrorWithContext' ,
28112811 ' Invoke-WithErrorContext' ,
28122812 ' Write-Log' ,
2813- ' Parse -VersionPattern' ,
2813+ ' ConvertTo -VersionPattern' ,
28142814 ' Test-SemVerCompatibility' ,
28152815 ' Get-CompatibleVersionsForPattern' ,
28162816 ' Select-VersionFromIntersection' ,
2817- ' Parse -RepositoryVersions' ,
2817+ ' Get -RepositoryVersions' ,
28182818 ' Get-SemVersionIntersection' ,
28192819 ' Format-SemVersion' ,
2820- ' Validate -DependencyConfiguration' ,
2820+ ' Test -DependencyConfiguration' ,
28212821 ' Show-ErrorDialog' ,
28222822 ' Show-ConfirmDialog' ,
28232823 ' Test-GitInstalled' ,
@@ -2828,7 +2828,7 @@ Export-ModuleMember -Function @(
28282828 ' Get-SshKeyForUrl' ,
28292829 ' Set-GitSshKey' ,
28302830 ' Get-GitTagDates' ,
2831- ' Sort -TagsByDate' ,
2831+ ' Resolve -TagsByDate' ,
28322832 ' Reset-GitRepository' ,
28332833 ' Get-AbsoluteBasePath' ,
28342834 ' Get-TagIntersection' ,
@@ -2838,8 +2838,8 @@ Export-ModuleMember -Function @(
28382838 ' Update-RepositoryDictionary' ,
28392839 ' Update-SemVerRepository' ,
28402840 ' Invoke-GitCheckout' ,
2841- ' Process -DependencyFile' ,
2842- ' Process -RecursiveDependencies' ,
2841+ ' Invoke -DependencyFile' ,
2842+ ' Invoke -RecursiveDependencies' ,
28432843 ' Read-CredentialsFile' ,
28442844 ' Set-PostCheckoutScriptResult' ,
28452845 ' Export-CheckoutResults' ,
0 commit comments