winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

Sample_GetVersion.ps1 (357B)


      1 <#
      2     .SYNOPSIS
      3         Example for 'Get-WinGetVersion' cmdlet.
      4         Prints the current client version.
      5 #>
      6 
      7 # TODO: Replace parameter with actual module name from PSGallery once module is released. 
      8 Param (
      9     [Parameter(Mandatory)]
     10     $ModulePath
     11 )
     12 
     13 Import-Module -Name $ModulePath
     14 
     15 $version = Get-WinGetVersion
     16 
     17 Write-Host($version);