ListRepoVersions.ps1 512 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env pwsh
  2. <#
  3. .SYNOPSIS
  4. Lists the version of all submodules and this repo
  5. .PARAMETER Shipping
  6. Only list repos that are shipping
  7. #>
  8. [cmdletbinding(SupportsShouldProcess = $true)]
  9. param(
  10. [switch]$Shipping = $false
  11. )
  12. Set-StrictMode -Version 2
  13. $ErrorActionPreference = 'Stop'
  14. Import-Module -Scope Local -Force "$PSScriptRoot/common.psm1"
  15. Assert-Git
  16. $RepoRoot = Resolve-Path "$PSScriptRoot/../"
  17. Get-Submodules $RepoRoot -Shipping:$Shipping | Format-Table -Property 'module','versionPrefix'