Types/OpenPackage/get_Security.md.ps1
|
<# .SYNOPSIS Gets a package's security notice .DESCRIPTION Gets any parts in the package named Security.md #> [OutputType("text/markdown")] param() # Get every part foreach ($part in $this.GetParts()) { # and ignore any part not named SECURITY if ($part.Uri -notmatch '/SECURITY\.md$') { continue } if ($part.Reader) { $part.Read() } else { $part } } # We are done. |