Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Dec 6, 2024
1 parent 3cf4a74 commit 8332079
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/functions/private/Auth/Context/Resolve-GitHubContext.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,11 @@
begin {
$commandName = $MyInvocation.MyCommand.Name
Write-Verbose "[$commandName] - Start"
Write-Verbose "Context:"
Write-Verbose ($Context | Out-String)
Write-Verbose 'Context:'
$Context | Out-String -Stream | ForEach-Object { Write-Verbose $_ }
}

process {
if ([string]::IsNullOrEmpty($Context)) {
throw "No contexts has been specified. Please provide a context or log in using 'Connect-GitHub'."
}

if ($Context -is [string]) {
$contextName = $Context
Write-Debug "Getting context: [$contextName]"
Expand All @@ -66,7 +62,7 @@
}

end {
Write-Output $Context
Write-Verbose "[$commandName] - End"
Write-Output $Context
}
}

0 comments on commit 8332079

Please sign in to comment.