Skip to content

Add support to show suggestions on CommandNotFound exception#7

Open
TommiTallgren wants to merge 6 commits intomasterfrom
pull-8458
Open

Add support to show suggestions on CommandNotFound exception#7
TommiTallgren wants to merge 6 commits intomasterfrom
pull-8458

Conversation

@TommiTallgren
Copy link
Copy Markdown

PR Summary

Add -UseFuzzyMatch switch to Get-Command to return commands that fuzzy match to the name in order of closest match to least. Integrate this with the suggestion framework so that on a CommandNotFound exception, 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.

Example usage

PR Checklist

SteveL-MSFT and others added 6 commits December 13, 2018 11:03
support fuzzy matching with get-command and on CommandNotFound exception, show suggestion
removed use of Tuple and created struct
@softagram-bot
Copy link
Copy Markdown

Softagram Impact Report for pull/7 (head commit: 7697835)

⭐ Visual Overview

Changed elements and changed dependencies.
Changed dependencies - click for full size
Graph legend
(Open in Softagram Desktop for full details)

⭐ Change Impact

How the changed files are used by the rest of the project
Impacted files - click for full size
Graph legend
(Open in Softagram Desktop for full details)

📄 Full report

Give feedback of this report to [email protected]

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants