Skip to content

Commit 18963e1

Browse files
StartAutomatingStartAutomating
authored andcommitted
Get-PipeScript: Updating Piecemeal@[0.3.10]
1 parent 50ddcbd commit 18963e1

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Get-PipeScript.ps1

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ function Get-PipeScript
1515
* Any module that includes -PipeScriptModuleName in it's tags.
1616
* The directory specified in -PipeScriptPath
1717
* Commands that meet the naming criteria
18-
* Commands that meet the naming criteria
1918
.Example
2019
Get-PipeScript
2120
#>
@@ -242,7 +241,6 @@ function Get-PipeScript
242241
}
243242
else {
244243
$ExecutionContext.SessionState.InvokeCommand.GetCommand($in, 'Alias,Function,ExternalScript,Application')
245-
$ExecutionContext.SessionState.InvokeCommand.GetCommand($in, 'Alias,Function,ExternalScript,Application')
246244
}
247245

248246
$extMethods = $extCmd.PSObject.Methods
@@ -858,13 +856,6 @@ function Get-PipeScript
858856
#endregion .CouldRun
859857

860858

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-
868859
# Decorate our return (so that it can be uniquely extended)
869860
if (-not $PipeScriptTypeName) {
870861
$PipeScriptTypeName = 'Extension'
@@ -909,7 +900,6 @@ function Get-PipeScript
909900
# Then, walk over each extension parameter.
910901
foreach ($kv in $extensionParams.GetEnumerator()) {
911902
# 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)) {
913903
if ($commandExtended -and ($commandExtended -as [Management.Automation.CommandMetaData]).Parameters.$($kv.Key)) {
914904
continue
915905
}
@@ -1057,7 +1047,6 @@ function Get-PipeScript
10571047
$script:PipeScriptsFromFiles = [Ordered]@{}
10581048
$script:PipeScriptsFileTimes = [Ordered]@{}
10591049
$script:PipeScripts =
1060-
@(@(
10611050
@(@(
10621051
#region Find PipeScript in Loaded Modules
10631052
foreach ($loadedModule in $loadedModules) { # Walk over all modules.

0 commit comments

Comments
 (0)