Types/OpenPackage/get_Manifest.json.ps1
|
<# .SYNOPSIS Gets a package's `manifest.json` .DESCRIPTION Gets the content of any `manifest.json` files in the package #> param() # Get every part foreach ($part in $this.GetParts()) { # and ignore any part not named manifest.json if ($part.Uri -notmatch '/manifest\.json$') { continue } if ($part.Reader) { $part.Read() } else { $part } } # We are done. |