chocolateyInstall.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$packageName = 'posh-azurecli'
$sourcePath = Split-Path -Parent $MyInvocation.MyCommand.Definition

$targetPath = Join-Path ([System.Environment]::GetFolderPath("MyDocuments")) "WindowsPowerShell\Modules\posh-azurecli"

if(Test-Path $targetPath){
    Write-Host "Remove previous module folder"
    Remove-Item -Path $targetPath -Recurse -Force | out-null
}
New-Item -ItemType Directory -Path $targetPath | out-null

Copy-Item "$sourcePath\*" $targetPath | out-null

$installPath = Split-Path $MyInvocation.MyCommand.Path
. "$installPath\utils.ps1"

Install-AzureCliCompletion