From 07dd168c32950e1534219bb40cf3c63d61d34e6d Mon Sep 17 00:00:00 2001 From: Jake Bolton Date: Mon, 4 Dec 2023 08:11:23 -0600 Subject: [PATCH] alias export test --- .../Test-DoAliasesAttributesAutoExport.psm1 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Pwsh/Modules/Test-DoAliasesAttributesAutoExport.psm1 diff --git a/Pwsh/Modules/Test-DoAliasesAttributesAutoExport.psm1 b/Pwsh/Modules/Test-DoAliasesAttributesAutoExport.psm1 new file mode 100644 index 0000000..110c2f4 --- /dev/null +++ b/Pwsh/Modules/Test-DoAliasesAttributesAutoExport.psm1 @@ -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.*')