PipeScript.ps1.psm1
[Include('*-*')]$psScriptRoot $aliasNames = @() foreach ($transpilerCmd in Get-Transpiler) { $aliasNames += ".>$($transpilerCmd.DisplayName)" Set-Alias ".>$($transpilerCmd.DisplayName)" Use-PipeScript $aliasNames += ".<$($transpilerCmd.DisplayName)>" Set-Alias ".<$($transpilerCmd.DisplayName)>" Use-PipeScript } foreach ($cmd in $ExecutionContext.SessionState.InvokeCommand.GetCommands('*','Function', $true)) { if ($cmd.ScriptBlock.Attributes.AliasNames) { $aliasNames += $cmd.ScriptBlock.Attributes.AliasNames } } Export-ModuleMember -Function * -Alias $aliasNames |