Skip to content

Add specific types for Get-Help output objects #27396

@MartinGC94

Description

@MartinGC94

Summary of the new feature / enhancement

Today I wanted to sort the parameter help by command name like so: Get-Help Get-WinEvent -Parameter * | sort name but there was no tab completion for name. I thought the fix would be to simply add the Outputtype attribute, but it turns out that Get-Help uses PSCustomObjects for its output so there is no way for me to specify it in the outputtype attribute.

Proposed technical implementation details (optional)

Create new public types for all the object types that Get-Help can output and specify them as the OutputType for Get-Help. Technically we don't even need to update the actual output from the command (though obviously that would be ideal).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions