init commit
This commit is contained in:
21
functions/functions.ps1
Normal file
21
functions/functions.ps1
Normal file
@@ -0,0 +1,21 @@
|
||||
<#function pacAuth ($env) {
|
||||
|
||||
& $Global:pptConfig.pacPath auth create --cloud UsGovDod --deviceCode
|
||||
$pacAuthResponse = & $Global:pptConfig.pacPath auth list
|
||||
|
||||
if($pacAuthResponse -match '\*') {
|
||||
Write-Host "[ Info ] " -ForegroundColor Green -nonewline; write-host "Authentication profile found" -ForegroundColor Cyan
|
||||
pacSelect -env $env
|
||||
return $true
|
||||
} else {
|
||||
Write-Host '[ Error ] ' -ForegroundColor Yellow -nonewline; write-host 'No profiles were found on this computer' -ForegroundColor Yellow
|
||||
return $false
|
||||
}
|
||||
|
||||
}#>
|
||||
|
||||
function pacSelect ($env) {
|
||||
|
||||
& $Global:pptConfig.pacPath org select -env $env.env_id
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user