We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 873d8f2 commit 4b42bf6Copy full SHA for 4b42bf6
Commands/Write-EZFormatFile.ps1
@@ -77,10 +77,18 @@ if ($formatting) {
77
$types = @(
78
# Add your own Write-TypeView statements here
79
# or declare them in the 'Types' directory
80
+ $ImportTypeViewOptions = [Ordered]@{}
81
+
82
+ $myModuleIsLoaded = Get-Module $myModuleName
83
84
+ if ($myModuleIsLoaded) {
85
+ $ImportTypeViewOptions.Commands = @($myModuleIsLoaded.ExportedFunctions.Values)
86
+ }
87
88
+ # The following code will import all TypeView files in the Types directory (the default)
89
Join-Path $myRoot Types |
90
Get-Item -ea ignore |
91
Import-TypeView
-
92
)
93
94
if ($types) {
0 commit comments