Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Dec 15, 2024
1 parent 3a0d36f commit 3ab340e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ filter Get-GitHubRepository {

process {
try {
Write-Verbose "ParamSet: [$($PSCmdlet.ParameterSetName)]"
switch ($PSCmdlet.ParameterSetName) {
'MyRepos_Type' {
$params = @{
Expand All @@ -191,6 +192,7 @@ filter Get-GitHubRepository {
Since = $Since
Before = $Before
}
$params | Format-Table -AutoSize | Out-String | ForEach-Object { Write-Debug $_ }
Get-GitHubMyRepositories @params
}
'MyRepos_Aff-Vis' {
Expand All @@ -204,6 +206,7 @@ filter Get-GitHubRepository {
Since = $Since
Before = $Before
}
$params | Format-Table -AutoSize | Out-String | ForEach-Object { Write-Debug $_ }
Get-GitHubMyRepositories @params
}
'ByName' {
Expand All @@ -212,13 +215,15 @@ filter Get-GitHubRepository {
Owner = $Owner
Repo = $Repo
}
$params | Format-Table -AutoSize | Out-String | ForEach-Object { Write-Debug $_ }
Get-GitHubRepositoryByName @params
}
'ListByID' {
$params = @{
Context = $Context
Since = $SinceID
}
$params | Format-Table -AutoSize | Out-String | ForEach-Object { Write-Debug $_ }
Get-GitHubRepositoryListByID @params
}
'ListByOrg' {
Expand All @@ -230,6 +235,7 @@ filter Get-GitHubRepository {
Direction = $Direction
PerPage = $PerPage
}
$params | Format-Table -AutoSize | Out-String | ForEach-Object { Write-Debug $_ }
Get-GitHubRepositoryListByOrg @params
}
'ListByUser' {
Expand All @@ -241,6 +247,7 @@ filter Get-GitHubRepository {
Direction = $Direction
PerPage = $PerPage
}
$params | Format-Table -AutoSize | Out-String | ForEach-Object { Write-Debug $_ }
Get-GitHubRepositoryListByUser @params
}
}
Expand Down

0 comments on commit 3ab340e

Please sign in to comment.