You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unless it's the only function that's exporting aliases, it breaks the module manifest. It outputs the aliases for that command as "System.String[]" which not only doesn't export the alias, but interferes with PowerShell parsing the manifest properly (because [] is seen as an invalid wildcard range), so the module won't import and Get-Module -ListAvailable reports partial information about it.
When I have a public function like:
Unless it's the only function that's exporting aliases, it breaks the module manifest. It outputs the aliases for that command as "System.String[]" which not only doesn't export the alias, but interferes with PowerShell parsing the manifest properly (because
[]is seen as an invalid wildcard range), so the module won't import and Get-Module -ListAvailable reports partial information about it.