Public/Nuget/Paket/Invoke-PaketFindVersions.ps1
function Invoke-PaketFindVersions { [CmdletBinding()] [CmdLetTag(("#nuget","#paket"))] param ( [parameter(Mandatory, ValueFromPipeline)] [string]$Id , [int]$Max = 1, [string]$Path = ".", [switch]$Force ) begin { } process { $paketExe = (Get-PaketDependenciesPath -Strict) if ($paketExe) { $xtraArgs = @(); if ($Max) { $xtraArgs += "--max $Max" } Set-Location (Get-Item $paketExe).DirectoryName Invoke-Script{dotnet paket find-package-versions $Id --max $Max | Select-Object -skip 1 -first $Max} } } end { } } |