Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
pwsh-GC
2.0.0
private/GCApiKey-present.ps1
function
GCApiKey-present
{
[
cmdletbinding
(
)
]
param
(
$ApiKey
)
if
(
-not
(
$ApiKey
-or
$global:GCApiKey
)
)
{
throw
"No API key present."
}
else
{
return
$true
}
}