Crescendo icon indicating copy to clipboard operation
Crescendo copied to clipboard

Add Support for Default Display Property Set

Open bmkaiser opened this issue 2 years ago • 0 comments

Summary of the new feature / enhancement

I think the only way to customize what properties are displayed by default with DefaultDisplayPropertySet is to use a function or script as the output handler. It would be nice to be able to provide only a list of property names within the JSON config and have those displayed by default without any other additional configuration.

This would allow better alignment with an executable's native behavior that returns fewer properties when not requesting the full JSON response.

Proposed technical implementation details (optional)

A new array property would be added to OutputHandlers that accepted a list of properties that would be returned by the executable. That list would be used to set the default returned properties as part of System.Management.Automation.PSPropertySet

bmkaiser avatar Jun 28 '23 00:06 bmkaiser