Skip to content

Commit 4742186

Browse files
author
James Brundage
committed
feat: OpenPackage.get_PowerShellUniversal ( Fixes #211 )
1 parent 312a365 commit 4742186

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<#
2+
.SYNOPSIS
3+
Gets PowerShell Universal Files in a package
4+
.DESCRIPTION
5+
Gets PowerShell Universal Files in an open package
6+
#>
7+
8+
foreach ($part in $this.GetParts()) {
9+
if ($part.Uri -notmatch '/\.universal/') { continue }
10+
if ($part.Uri -notmatch '\.ps1$') { continue }
11+
$part
12+
}

0 commit comments

Comments
 (0)