Skip to content

Commit 5b08d4e

Browse files
author
James Brundage
committed
feat: Namespace.get_Function ( Fixes #1140 )
1 parent a991eb5 commit 5b08d4e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Types/Namespace/get_Function.ps1

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
if (-not $this.Pattern) { return }
2+
if (-not $global:AllFunctionsOrFilters) {
3+
$global:AllFunctionsOrFilters = $global:ExecutionContext.SessionState.InvokeCommand.GetCommands('*','Function,Filter',$true)
4+
}
5+
foreach ($cmdPattern in $this.Pattern) {
6+
$global:AllFunctionsOrFilters -match $cmdPattern
7+
}

0 commit comments

Comments
 (0)