Skip to content

Ability to select installer when multiple matches are returned. #1620

Closed as not planned
Closed as not planned

Description

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 Marvin Püthe (@marvinpuethe) in #282 (comment)

Activity

  1. ghost added
    Needs-Triage
    on Oct 21, 2021
  2. added
    Issue-Feature
    and removed
    Needs-Triage
    on Oct 21, 2021
  3. jedieaston commented on Oct 21, 2021

    @jedieaston
    Contributor

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

  4. denelon commented on Oct 21, 2021

    @denelon
    CollaboratorAuthor

    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.

  5. denelon commented on Oct 21, 2021

    @denelon
    CollaboratorAuthor

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

  6. SirusCodes commented on Aug 5, 2022

    @SirusCodes

    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

  7. denelon commented on Aug 5, 2022

    @denelon
    CollaboratorAuthor

    Darshan Rander (@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 😊

  8. denelon commented on Aug 5, 2022

    @denelon
    CollaboratorAuthor

    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.

  9. SirusCodes commented on Aug 5, 2022

    @SirusCodes

    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 🤔

  10. danny007in commented on Nov 8, 2023

    @danny007in

    any progress

  11. SirusCodes commented on Nov 8, 2023

    @SirusCodes

    any progress

    #2650 you can see the spec here and further updates will be on this PR I guess

  12. added a commit that references this issue on Jul 27, 2024
  13. theking2 commented on Jul 1, 2026

    @theking2

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

    It would just fail in the same way it does now. Is there an exit code now? I don't know but it should be the same as to not break and be backwards compatible.

  14. denelon commented on Jul 26, 2026

    @denelon
    CollaboratorAuthor

    Thanks for filing this. Closing as a duplicate of #301, which now captures this same request — an interactive numbered selection prompt when a query matches multiple packages — as the canonical issue. Consolidating the discussion there keeps the signal in one place.

    If this is important to you, please add a 👍 to #301 so we can gauge interest.

    Drafted with the help of GitHub Copilot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Feature

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions