Skip to content

Commit e80c638

Browse files
🚀 [Enhancement]: Add Get-LocalModule function to retrieve the current module context, improving module management and accessibility.
1 parent 0b25b46 commit e80c638

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/header.ps1‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidLongLines', '', Justification = 'Contains long links.')]
44
[CmdletBinding()]
55
param()
6+
7+
function Get-LocalModule {
8+
$MyInvocation.MyCommand.Module
9+
}
10+
$script:Module = Get-LocalModule

0 commit comments

Comments
 (0)