Add yarn_command_not_found rule

This addresses https://github.com/nvbn/thefuck/pull/607#issuecomment-283945505

The code was adapted from the `grunt_task_not_found` rule
This commit is contained in:
Joseph Frazier
2017-03-03 23:38:20 -05:00
parent ef5ff6210a
commit df5428c5e4
3 changed files with 145 additions and 0 deletions
+1
View File
@@ -249,6 +249,7 @@ using the matched rule and runs it. Rules enabled by default are as follows:
* `whois` – fixes `whois` command;
* `workon_doesnt_exists` – fixes `virtualenvwrapper` env name os suggests to create new.
* `yarn_alias` – fixes aliased `yarn` commands like `yarn ls`;
* `yarn_command_not_found` – fixes misspelled `yarn` commands;
Enabled by default only on specific platforms: