GinShell.GoDaddy/Private/Get-GoDaddyCreds.ps1

function Get-GoDaddyCreds {
    <# Returns @{ Key; Secret } from env vars or interactive prompt. #>
    $apiKey    = $env:GS_GODADDY_API_KEY
    $apiSecret = $env:GS_GODADDY_API_SECRET

    if (-not $apiKey) {
        $apiKey = Read-Host "[GS_GODADDY_API_KEY not set] Enter your GoDaddy API Key"
    }
    if (-not $apiSecret) {
        $apiSecret = Read-Host "[GS_GODADDY_API_SECRET not set] Enter your GoDaddy API Secret"
    }

    return @{ Key = $apiKey; Secret = $apiSecret }
}