Skip to content

Commit 39d68e2

Browse files
author
James Brundage
committed
Updating .PSM1 source (adding smart aliases for keywords)
1 parent 11cd7f2 commit 39d68e2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

PipeScript.ps1.psm1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ $aliasList +=
77
$aliasList +=
88
[SmartAlias(Command='Use-PipeScript',Prefix='.<',Suffix='>',PassThru)]$transpilerNames
99

10+
$pipeScriptKeywords =
11+
Get-Transpiler |
12+
Where-Object { $_.Metadata.'PipeScript.Keyword' } |
13+
Select-Object -ExpandProperty DisplayName
14+
15+
$aliasList +=
16+
[SmartAlias(Command='Use-PipeScript',PassThru)]$pipeScriptKeywords
17+
1018
$MyModule = $MyInvocation.MyCommand.ScriptBlock.Module
1119
$aliasList +=
1220
[GetExports("Alias")]$MyModule

0 commit comments

Comments
 (0)