Skip to content

Commit 0866b07

Browse files
author
James Brundage
committed
Updating Module Source (Fixing #100)
1 parent 0aa1f4c commit 0866b07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

PipeScript.ps1.psm1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ foreach ($transpilerCmd in Get-Transpiler) {
88
Set-Alias ".<$($transpilerCmd.DisplayName)>" Use-PipeScript
99
}
1010

11+
$MyModule = $MyInvocation.MyCommand.ScriptBlock.Module
1112
foreach ($cmd in $ExecutionContext.SessionState.InvokeCommand.GetCommands('*','Function', $true)) {
13+
if ($cmd.ScriptBlock.Module -ne $MyModule) { continue }
1214
if ($cmd.ScriptBlock.Attributes.AliasNames) {
1315
$aliasNames += $cmd.ScriptBlock.Attributes.AliasNames
1416
}

0 commit comments

Comments
 (0)