Skip to content

Commit 148420e

Browse files
author
James Brundage
committed
feat: Namespace.get_PSType ( Fixes #1142 )
1 parent 690d884 commit 148420e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Types/Namespace/get_PSType.ps1

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<#
2+
.SYNOPSIS
3+
Gets the pstypes in the namespace.
4+
.DESCRIPTION
5+
Gets all the pstypes in the namespace.
6+
7+
This is, gets all extended type information in the namespace.
8+
#>
9+
if (-not $this.Pattern) { return }
10+
11+
foreach ($typeData in Get-TypeData) {
12+
if ($typeData.TypeName -match $this.Pattern) {
13+
$typeData
14+
}
15+
}

0 commit comments

Comments
 (0)