Skip to content

Commit

Permalink
feat: Namespace.get_Function ( Fixes #1140 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Jun 29, 2024
1 parent a991eb5 commit 5b08d4e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Types/Namespace/get_Function.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if (-not $this.Pattern) { return }
if (-not $global:AllFunctionsOrFilters) {
$global:AllFunctionsOrFilters = $global:ExecutionContext.SessionState.InvokeCommand.GetCommands('*','Function,Filter',$true)
}
foreach ($cmdPattern in $this.Pattern) {
$global:AllFunctionsOrFilters -match $cmdPattern
}

0 comments on commit 5b08d4e

Please sign in to comment.