microsoft/winget-cli

Add ability to search/filter or group by publisher

Opened this issue · 0 comments

Relevant area(s)

WinGet CLI, PowerShell Module

Description of the new feature / enhancement

Searching/filtering as well as grouping results by publisher seems to be a feature that may be worth investigating, particularly if there are in future similar named packages that are from different publishers.

By enabling this as an additional search filter it should speed up search results.

Proposed technical implementation details

In the CLI I'd expose this by means of an additional returnable property, off by default, unless requested by an additional cli switches --return-publisher, --sort-publisher & --group-publisher

When --return-publisher is called the results returned by winget should visually show a seperate publisher field in the returned data view & optionally could work with a --sort-publisher`

When --group-publisher is called the results returned by winget should visually group packages with seperated groups for each publisher

In the PowerShell Module, this should be an additional property that is not initially displayed but can easily be returned for additional manipulation via Select/Group/Sort/Where Object cmdlets