Skip to content

Commit

Permalink
alias export test
Browse files Browse the repository at this point in the history
  • Loading branch information
ninmonkey committed Dec 4, 2023
1 parent 2e0e863 commit 07dd168
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Pwsh/Modules/Test-DoAliasesAttributesAutoExport.psm1
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
'Testing: Do aliases auto-export if the command they are attributes to, are? Nope.' | write-host

function InternalFunc {
[alias('Ini.Func')]
param()
$MyInvocation.MyCommand.Name
}
function Alice.TestExternal {
[alias(
'Ini.Exter',
'Alice.Exter'
)]
param()
$MyInvocation.MyCommand.Name
}

Export-ModuleMember -Function @('Alice.*') -Alias ('Alice.*') -Variable @('Alice.*')

0 comments on commit 07dd168

Please sign in to comment.