Open Suirtimed opened 4 years ago
In addition (or as an alternative), some kind of typo-toleration would be nice!
Running winget install python3
doesn't find any package (because Python 3's package name is just python
, there is no Python 2 like on other package managers).
Given that python3
is only a single character away from python
, it would be extremely helpful if winget could at least output something along the lines of No package found matching input criteria.\nDid you mean python
(Python.Python@3.9.2)?
It could even prompt to install the app right-away, like suggested by @Suirtimed.
I feel like just running winget install python
right-away and hoping for it to be the right version isn't a good alternative (because there's no confirmation prompt before installation), so typo-tolerance/suggestions about the closest matching packet would be very helpful!
Perform a search if an install has no results
If I execute
winget install nightingale
I get an error message. "No package found matching input criteria"The correct command would have been
winget install "Nightingale REST Client"
If an install doesn't find a match, then the client should perform a search. If only one result matches, the user could be prompted to install the package that was found (if only one is found).
Proposed technical implementation details (optional)
First Example
winget install nightingale
No package found matching input criteria. Executing winget search nightingale Name Id Version SourceSecond Example
winget install terminal
No package found matching input criteria. Executing winget search terminal Name Id Version Match Source