File tree 1 file changed +6
-9
lines changed
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -77,15 +77,6 @@ if ($formatting) {
77
77
$types = @(
78
78
# Add your own Write-TypeView statements here
79
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
80
Join-Path $myRoot Types |
90
81
Get-Item -ea ignore |
91
82
Import-TypeView
@@ -96,6 +87,12 @@ if ($types) {
96
87
# You can also output to multiple paths by passing a hashtable to -OutputPath.
97
88
$types | Out-TypeData -OutputPath $myTypesFilePath
98
89
}
90
+
91
+ $MyModuleIsLoaded = Get-Module $MyModuleName
92
+ if ($MyModuleIsLoaded) {
93
+ $myCommandTypesFilePath = Join-Path $destinationRoot "$myModuleName.commands.types.ps1xml"
94
+ Import-TypeView -Commands @($MyModuleIsLoaded.ExportedFunctions.Values) | Out-TypeData
95
+ }
99
96
Pop-Location
100
97
'@
101
98
}
You can’t perform that action at this time.
0 commit comments