You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[Aspect.ModuleExtensionType](/docs/Aspect.ModuleExtensionType.md)|[Outputs a module's extension types](/docs/Aspect.ModuleExtensionType.md)|
20
20
|[Aspect.ModuleExtensionPattern](/docs/Aspect.ModuleExtensionPattern.md)|[Outputs a module's extension pattern](/docs/Aspect.ModuleExtensionPattern.md)|
@@ -27,6 +27,66 @@ When a file is built, any aspects will be consolidated and embedded inline.
27
27
28
28
All of the current aspect examples are listed below:
29
29
30
+
## Aspect.DynamicParameters -> Aspect.DynamicParameter Example 1
31
+
32
+
33
+
~~~PowerShell
34
+
Get-Command Get-Command |
35
+
Aspect.DynamicParameter
36
+
~~~
37
+
38
+
## Aspect.DynamicParameters -> Aspect.DynamicParameter Example 2
39
+
40
+
41
+
~~~PowerShell
42
+
Get-Command Get-Process |
43
+
Aspect.DynamicParameter -IncludeParameter Name # Select -Expand Keys | Should -Be Name
44
+
~~~
45
+
46
+
## Aspect.ModuleCommandTypes -> Aspect.ModuleExtensionType Example 1
47
+
48
+
49
+
~~~PowerShell
50
+
# Outputs a PSObject with information about extension command types.
51
+
52
+
# The two primary pieces of information are the `.Name` and `.Pattern`.
53
+
Aspect.ModuleExtensionType -Module PipeScript # Should -BeOfType ([PSObject])
54
+
~~~
55
+
56
+
## Aspect.ModuleCommandType -> Aspect.ModuleExtensionType Example 1
57
+
58
+
59
+
~~~PowerShell
60
+
# Outputs a PSObject with information about extension command types.
61
+
62
+
# The two primary pieces of information are the `.Name` and `.Pattern`.
63
+
Aspect.ModuleExtensionType -Module PipeScript # Should -BeOfType ([PSObject])
64
+
~~~
65
+
66
+
## Aspect.ModuleExtensionTypes -> Aspect.ModuleExtensionType Example 1
67
+
68
+
69
+
~~~PowerShell
70
+
# Outputs a PSObject with information about extension command types.
71
+
72
+
# The two primary pieces of information are the `.Name` and `.Pattern`.
73
+
Aspect.ModuleExtensionType -Module PipeScript # Should -BeOfType ([PSObject])
74
+
~~~
75
+
76
+
## Aspect.ModuleCommandPattern -> Aspect.ModuleExtensionPattern Example 1
77
+
78
+
79
+
~~~PowerShell
80
+
Aspect.ModuleCommandPattern -Module PipeScript # Should -BeOfType ([Regex])
81
+
~~~
82
+
83
+
## Aspect.ModuleExtendedCommand -> Aspect.ModuleExtensionCommand Example 1
84
+
85
+
86
+
~~~PowerShell
87
+
Aspect.ModuleExtensionCommand -Module PipeScript # Should -BeOfType ([Management.Automation.CommandInfo])
0 commit comments