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

Change return type of lists from winget #1506

Closed
Luk164 opened this issue Sep 24, 2021 · 2 comments
Closed

Change return type of lists from winget #1506

Luk164 opened this issue Sep 24, 2021 · 2 comments
Labels
Issue-Feature This is a feature request for the Windows Package Manager client. Resolution-Duplicate Issue is a duplicate
Milestone

Comments

@Luk164
Copy link

Luk164 commented Sep 24, 2021

Description of the new feature/enhancement

Currently, when lists are returned from winget, like in winget upgrade, the list is merely an array of strings. This makes it harder to use features such as powershell filtering.

Proposed technical implementation details (optional)

Instead of returning an array of strings, when running in powershell, return an array of objects, like the Get-Process commandlet does. Powershell as already able to convert an array into a table, so doing it the current way does not make sense to me.

With this, we could for example use winget upgrade | where Version -ne "Unknown" to get a list of all packages that we can retrieve versions for, as some packages do not show their current version, even if installed via winget.

@Luk164 Luk164 added the Issue-Feature This is a feature request for the Windows Package Manager client. label Sep 24, 2021
@ghost ghost added the Needs-Triage Issue need to be triaged label Sep 24, 2021
@denelon
Copy link
Contributor

denelon commented Sep 24, 2021

Duplicate of #221

We're currently working on #1431 for #674

@ghost
Copy link

ghost commented Sep 24, 2021

@Luk164 we've identified this Issue as a duplicate of another one that already exists. This specific instance is being closed in favor of tracking the concern over on the referenced Issue. Thanks for your report! Be sure to add your 👍 to the other issue to help raise the priority.

@ghost ghost closed this as completed Sep 24, 2021
@ghost ghost added Resolution-Duplicate Issue is a duplicate and removed Needs-Triage Issue need to be triaged labels Sep 24, 2021
@denelon denelon added this to the v1.3-Client milestone Jun 21, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature This is a feature request for the Windows Package Manager client. Resolution-Duplicate Issue is a duplicate
Projects
None yet
Development

No branches or pull requests

2 participants