Skip to content

Commit 4b9da4e

Browse files
author
James Brundage
committed
feat: Exporting $Irregular ( Fixes #212 )
1 parent 1ceedb0 commit 4b9da4e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Irregular.ps.psm1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
$CommandsPath = Join-Path $PSScriptRoot Commands
22
[include('*-*.ps1')]$CommandsPath
33

4+
$MyModule = $MyInvocation.MyCommand.ScriptBlock.Module
5+
$ExecutionContext.SessionState.PSVariable.Set($myModule.Name, $MyModule)
6+
$MyModule.pstypenames.insert(0, $myModule.Name)
7+
48
Import-RegEx
59

610
foreach ($k in $script:_RegexLibrary.Keys) {
@@ -27,4 +31,4 @@ Set-Alias ?<> New-RegEx
2731
Set-Alias Write-RegEx New-RegEx
2832
Set-Alias ?<.> Use-Regex
2933

30-
Export-ModuleMember -Function *-* -Alias *
34+
Export-ModuleMember -Function *-* -Alias * -Variable $MyModule.Name

0 commit comments

Comments
 (0)