Skip to content

Commit

Permalink
feat: Namespace.get_PSType ( Fixes #1142 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Jun 29, 2024
1 parent 690d884 commit 148420e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Types/Namespace/get_PSType.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<#
.SYNOPSIS
Gets the pstypes in the namespace.
.DESCRIPTION
Gets all the pstypes in the namespace.
This is, gets all extended type information in the namespace.
#>
if (-not $this.Pattern) { return }

foreach ($typeData in Get-TypeData) {
if ($typeData.TypeName -match $this.Pattern) {
$typeData
}
}

0 comments on commit 148420e

Please sign in to comment.