PipeScript.psm1
foreach ($file in Get-ChildItem -LiteralPath $PSScriptRoot -Filter *-*.ps1) { . $file.Fullname } $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 |