Apps/Get-HashicorpNomad.ps1
function Get-HashicorpNomad { <# .SYNOPSIS Get the current versions and download URLs for Hashicorp Nomad. .NOTES Author: Aaron Parker Twitter: @stealthpuppy #> [OutputType([System.Management.Automation.PSObject])] [CmdletBinding(SupportsShouldProcess = $false)] param ( [Parameter(Mandatory = $false, Position = 0)] [ValidateNotNullOrEmpty()] [System.Management.Automation.PSObject] $res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1]) ) # Pass the repo releases API URL and return a formatted object $Output = Get-HashicorpApp -res $res Write-Output -InputObject $Output } |