Add support to show suggestions on CommandNotFound exception#7
Open
TommiTallgren wants to merge 6 commits intomasterfrom
Open
Add support to show suggestions on CommandNotFound exception#7TommiTallgren wants to merge 6 commits intomasterfrom
TommiTallgren wants to merge 6 commits intomasterfrom
Conversation
…eful in finding close matches
removed use of Tuple and created struct
Softagram Impact Report for pull/7 (head commit: 7697835)⭐ Visual OverviewChanged elements and changed dependencies. ⭐ Change ImpactHow the changed files are used by the rest of the project 📄 Full report
Give feedback of this report to [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



PR Summary
Add
-UseFuzzyMatchswitch toGet-Commandto return commands that fuzzy match to the name in order of closest match to least. Integrate this with the suggestion framework so that on aCommandNotFoundexception, suggestions are shown for likely commands the user intended. The suggestions are part of the console host and write directly to the console so don't see a way to test that. In the future, we should consider changing that to using information stream.PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.-UseFuzzyMatchingswitch added toGet-CommandMicrosoftDocs/PowerShell-Docs#3429[feature]if the change is significant or affects feature tests