We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 288a04b commit ef53765Copy full SHA for ef53765
PipeScript.ps1.psm1
@@ -9,11 +9,6 @@ foreach ($transpilerCmd in Get-Transpiler) {
9
}
10
11
$MyModule = $MyInvocation.MyCommand.ScriptBlock.Module
12
-foreach ($cmd in $ExecutionContext.SessionState.InvokeCommand.GetCommands('*','Function', $true)) {
13
- if ($cmd.ScriptBlock.Module -ne $MyModule) { continue }
14
- if ($cmd.ScriptBlock.Attributes.AliasNames) {
15
- $aliasNames += $cmd.ScriptBlock.Attributes.AliasNames
16
- }
17
-}
+$aliasNames += [GetExports("Alias")]$MyModule
18
19
Export-ModuleMember -Function * -Alias $aliasNames
0 commit comments