Skip to content

Commit

Permalink
feat: Namespace.get_Cmdlet ( Fixes #1139 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Jun 29, 2024
1 parent e82ef3b commit 38d17fc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Types/Namespace/get_Cmdlet.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<#
.SYNOPSIS
Gets the cmdlets in the namespace.
.DESCRIPTION
Gets all the cmdlets in the namespace.
#>
if (-not $this.Pattern) { return }
if (-not $global:AllCmdlets) {
$global:AllCmdlets = $global:ExecutionContext.SessionState.InvokeCommand.GetCommands('*','Cmdlet',$true)
}
$global:AllCmdlets -match $this.Pattern

0 comments on commit 38d17fc

Please sign in to comment.