Skip to content

Provide dictionary-based suggestions for common misspellings#4392

Merged
schlessera merged 1 commit intowp-cli:masterfrom
n8finch:master
Oct 5, 2017
Merged

Provide dictionary-based suggestions for common misspellings#4392
schlessera merged 1 commit intowp-cli:masterfrom
n8finch:master

Conversation

@n8finch
Copy link
Contributor

@n8finch n8finch commented Oct 3, 2017

Hey folks!

This PR seeks to get the ball rolling on (or resolve) this issue: #4379

Per Alain's leading, I've added in the $suggestion_map array and the return check.

Several items in the array are used across different commands (e.g., wp post new and wp db new would both return the correct suggestion: Did you mean 'create'?

I've label this as a WIP, so happy to make edits or expand this.

Thanks!
Nate

@n8finch n8finch changed the title [WIP] suggestion_mapadd array to php/utils.php [WIP] add suggestion_map array to php/utils.php Oct 3, 2017
@danielbachhuber danielbachhuber added this to the 1.4.0 milestone Oct 4, 2017
Copy link
Member

@danielbachhuber danielbachhuber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @n8finch ! Looks good on my end. I'll let @schlessera weigh in with his opinion/any requested changes.

@n8finch
Copy link
Contributor Author

n8finch commented Oct 5, 2017

Sounds good, and thanks!

@schlessera
Copy link
Member

Looks good to me!

I'll merge the current collection, we can always add more later on.

Thanks for the work on this, @n8finch !

@schlessera schlessera merged commit 7f4c4e4 into wp-cli:master Oct 5, 2017
@schlessera schlessera changed the title [WIP] add suggestion_map array to php/utils.php Provide dictionary-based suggestions for common misspellings Oct 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants