winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Ability to select installer when multiple matches are returned.

Open denelon opened this issue 4 years ago • 7 comments

I ran into the same problem today. I would expect it to be interactive like:

"Multiple packages matched your query. Please select one of the following: [1] Microsoft.Powershell [2] Microsoft.PowerShell-Preview"

Anyway thanks for the awesome work 💪

Originally posted by @marvinpuethe in https://github.com/microsoft/winget-cli/issues/282#issuecomment-632585106

denelon avatar Oct 21 '21 14:10 denelon

How would this work if winget was running non-interactively?

jedieaston avatar Oct 21 '21 15:10 jedieaston

That's a great question, I was thinking about that, and haven't come up with the "best" solution yet. With the import command, the Id and source are specified.

denelon avatar Oct 21 '21 15:10 denelon

Another example for this in an unrelated issue: https://github.com/microsoft/winget-cli/issues/301#issuecomment-940172239

denelon avatar Oct 21 '21 16:10 denelon

Another example for this in an unrelated issue: #301 (comment)

This kind of solution is fine I feel. Are there any plans to integrate it? maybe I can work on it

SirusCodes avatar Aug 05 '22 13:08 SirusCodes

@SirusCodes we would love to have a community contributed solution. The first step would be to draft a spec so we can take feedback on the proposed implementation. There is a template and there are a few examples in the specs folder. Please create a draft PR when you're ready for review and feedback 😊

denelon avatar Aug 05 '22 15:08 denelon

I think we would want a feature toggle and some discussion about how an interactive command might work. Some users may also prefer the current experience so they can continue having scripted solutions which don't support interactive behaviors. I'd expect that to be controlled by some kind of setting with a rational default behavior/setting.

denelon avatar Aug 05 '22 15:08 denelon

If they have scripted solutions, they would be using IDs and won't ever see this interactive option while using scripts. I don't see a need for a feature toggle 🤔

SirusCodes avatar Aug 05 '22 17:08 SirusCodes

any progress

danny007in avatar Nov 08 '23 09:11 danny007in

any progress

https://github.com/microsoft/winget-cli/pull/2650 you can see the spec here and further updates will be on this PR I guess

SirusCodes avatar Nov 08 '23 10:11 SirusCodes