internal/Get-PackageConfigFromRepo.ps1
<#
.SYNOPSIS Get package from git repository .DESCRIPTION Get package from git repository .PARAMETER packageObject Package Object from Git Repo api query .EXAMPLE Get-PackageConfigFromRepo -packageObject $packageObject .NOTES General notes #> function Get-PackageConfigFromRepo { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [String] $url, [Parameter(Mandatory = $true)] $packageObject ) begin { $path = $packageObject.path } process { $get = Get-WebRequest "$($url)?scopePath=$path&api-version=1.0" $content = $get.Content $xml = ConvertTo-XmlResponse $content } end { $xml } } |