Functions/Private/Get-BitBucketCloud.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
function Get-BitBucketCloud {
    [CmdletBinding()]
    param()

    if (-Not (Test-BitBucketCloud)) {
        throw 'Credentials not set. Please use Set-BitBucketCloud first.'
    }

    @{
        User  = $script:BitBucketCloudUser
        Token = $script:BitBucketCloudToken
        Team  = $script:BitBucketCloudTeam
    }
}