We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e82ef3b commit 38d17fcCopy full SHA for 38d17fc
Types/Namespace/get_Cmdlet.ps1
@@ -0,0 +1,11 @@
1
+<#
2
+.SYNOPSIS
3
+ Gets the cmdlets in the namespace.
4
+.DESCRIPTION
5
+ Gets all the cmdlets in the namespace.
6
+#>
7
+if (-not $this.Pattern) { return }
8
+if (-not $global:AllCmdlets) {
9
+ $global:AllCmdlets = $global:ExecutionContext.SessionState.InvokeCommand.GetCommands('*','Cmdlet',$true)
10
+}
11
+$global:AllCmdlets -match $this.Pattern
0 commit comments