We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
OpenPackage.get_PowerShellUniversal
1 parent 312a365 commit 4742186Copy full SHA for 4742186
1 file changed
Types/OpenPackage/get_PowerShellUniversal.ps1
@@ -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