jdhitsolutions / WingetTools

A set of PowerShell tools for working with the winget package manager.
MIT License
146 stars 14 forks source link

[Request]: Get-WGPackage --query Flag #9

Open riotrah opened 1 year ago

riotrah commented 1 year ago

Describe the request

Hello, thanks for this module <3.

Was wondering if I could easily replace my winget search FOO queries with Get-WGPackage -q FOO.

I know I can pipe the former into the latter, but for some reason, doing so induces bizarrely noisy results and duplicated lines printed that say

WARNING: winget show --source winget
WARNING: No package found matching input criteria.
... (repeats a few times for some reason) ...

I imagine the strange output above is independent from the possibility of passing to winget a --query arg, but perhaps the issue of the former can serve as a motivation for the latter in the meantime.

PowerShell version

7.2

Platform

Windows 11 Pro or Enterprise

jdhitsolutions commented 1 year ago

This should already work. You may need to specify a parameter.

image

Your winget show command is missing a moniker or id.

image