function Set-Source {
[CmdletBinding()]
[Alias("ss", "ssou")]
param()
}
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.