Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Default Display Property Set #202

Open
bmkaiser opened this issue Jun 28, 2023 · 0 comments
Open

Add Support for Default Display Property Set #202

bmkaiser opened this issue Jun 28, 2023 · 0 comments
Labels
Issue-Enhancement New feature or request

Comments

@bmkaiser
Copy link

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 bmkaiser added the Issue-Enhancement New feature or request label Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant