Skip to content

Commit 76dc60b

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: Exporting $Irregular ( Fixes #212 )
1 parent 4b9da4e commit 76dc60b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Irregular.psm1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ $CommandsPath = Join-Path $PSScriptRoot Commands
1010
. $file.FullName
1111
}
1212

13+
$MyModule = $MyInvocation.MyCommand.ScriptBlock.Module
14+
$ExecutionContext.SessionState.PSVariable.Set($myModule.Name, $MyModule)
15+
$MyModule.pstypenames.insert(0, $myModule.Name)
16+
1317
Import-RegEx
1418

1519
foreach ($k in $script:_RegexLibrary.Keys) {
@@ -36,5 +40,5 @@ Set-Alias ?<> New-RegEx
3640
Set-Alias Write-RegEx New-RegEx
3741
Set-Alias ?<.> Use-Regex
3842

39-
Export-ModuleMember -Function *-* -Alias *
43+
Export-ModuleMember -Function *-* -Alias * -Variable $MyModule.Name
4044

0 commit comments

Comments
 (0)