@@ -15,7 +15,6 @@ function Get-PipeScript
15
15
* Any module that includes -PipeScriptModuleName in it's tags.
16
16
* The directory specified in -PipeScriptPath
17
17
* Commands that meet the naming criteria
18
- * Commands that meet the naming criteria
19
18
. Example
20
19
Get-PipeScript
21
20
#>
@@ -242,7 +241,6 @@ function Get-PipeScript
242
241
}
243
242
else {
244
243
$ExecutionContext.SessionState.InvokeCommand.GetCommand ($in , ' Alias,Function,ExternalScript,Application' )
245
- $ExecutionContext.SessionState.InvokeCommand.GetCommand ($in , ' Alias,Function,ExternalScript,Application' )
246
244
}
247
245
248
246
$extMethods = $extCmd.PSObject.Methods
@@ -858,13 +856,6 @@ function Get-PipeScript
858
856
# endregion .CouldRun
859
857
860
858
861
- # Decorate our return (so that it can be uniquely extended)
862
- if (-not $PipeScriptTypeName ) {
863
- $PipeScriptTypeName = ' Extension'
864
- }
865
- if ($extCmd.pstypenames -notcontains $PipeScriptTypeName ) {
866
- $extCmd.pstypenames.insert (0 , $PipeScriptTypeName )
867
-
868
859
# Decorate our return (so that it can be uniquely extended)
869
860
if (-not $PipeScriptTypeName ) {
870
861
$PipeScriptTypeName = ' Extension'
@@ -909,7 +900,6 @@ function Get-PipeScript
909
900
# Then, walk over each extension parameter.
910
901
foreach ($kv in $extensionParams.GetEnumerator ()) {
911
902
# If the $CommandExtended had a built-in parameter, we cannot override it, so skip it.
912
- if ($commandExtended -and ($commandExtended -as [Management.Automation.CommandMetaData ]).Parameters.$ ($kv.Key )) {
913
903
if ($commandExtended -and ($commandExtended -as [Management.Automation.CommandMetaData ]).Parameters.$ ($kv.Key )) {
914
904
continue
915
905
}
@@ -1057,7 +1047,6 @@ function Get-PipeScript
1057
1047
$script :PipeScriptsFromFiles = [Ordered ]@ {}
1058
1048
$script :PipeScriptsFileTimes = [Ordered ]@ {}
1059
1049
$script :PipeScripts =
1060
- @ (@ (
1061
1050
@ (@ (
1062
1051
# region Find PipeScript in Loaded Modules
1063
1052
foreach ($loadedModule in $loadedModules ) { # Walk over all modules.
0 commit comments