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