We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4bb2aa commit 46416dcCopy full SHA for 46416dc
Types/Namespace/get_Variable.ps1
@@ -0,0 +1,19 @@
1
+<#
2
+.SYNOPSIS
3
+ Gets the variables in the namespace.
4
+.DESCRIPTION
5
+ Gets all the variables in the namespace.
6
+
7
+ These are all the variables where the name matches the pattern of the namespace,
8
+ or the `.Value.pstypenames` match the pattern of the namespace.
9
+#>
10
11
+foreach ($variable in Get-ChildItem variable:) {
12
+ if ($variable.Name -in 'this','_') { return }
13
+ if ($variable.Name -match $this.Pattern) {
14
+ $variable
15
+ }
16
+ elseif ($variable.value.pstypenames -match $this.Pattern) {
17
18
19
+}
0 commit comments