platyPS
platyPS copied to clipboard
Fix: wrong outputs of ParameterType and Syntax if the type is nested and generic
PR Summary
- Fix issue: #822
- Unifed
GetAbbreviatedType()method for generating abbreviations for syntax parameters andGetParameterTypeName()method for generating parameter types
PR Context
For:
- https://github.com/PowerShell/platyPS/issues/822
My current patch aligns with the current platyPS design by limiting parameter type abbreviations to namespaces only.
When -AbbreviateParameterTypeName is specified, System.Int32 is rendered as Int32, not int.
If you prefer it to be int, please reply.
In fact, PowerShell help displays System.Int32 as int.