From 8c9416e57f5ac58d146754bdfb0eca156517817e Mon Sep 17 00:00:00 2001 From: Michael Lee Date: Fri, 14 Aug 2015 09:38:42 +0100 Subject: [PATCH] Renamed to unknown command to better match current functionality --- README.md | 2 +- ...{test_hadoop_dfs_missing_dash.py => test_unknown_command.py} | 2 +- .../rules/{hadoop_dfs_missing_dash.py => unknown_command.py} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename tests/rules/{test_hadoop_dfs_missing_dash.py => test_unknown_command.py} (95%) rename thefuck/rules/{hadoop_dfs_missing_dash.py => unknown_command.py} (100%) diff --git a/README.md b/README.md index d83fbd2b..079b54b4 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,6 @@ using the matched rule and runs it. Rules enabled by default are as follows: * `go_run` – appends `.go` extension when compiling/running Go programs * `grep_recursive` – adds `-r` when you trying to `grep` directory; * `gulp_not_task` – fixes misspelled gulp tasks; -* `hadoop_dfs_missing_dash` – Add the missing dash to the command. * `has_exists_script` – prepends `./` when script/binary exists; * `heroku_no_command` – fixes wrong `heroku` commands like `heroku log`; * `history` – tries to replace command with most similar command from history; @@ -192,6 +191,7 @@ using the matched rule and runs it. Rules enabled by default are as follows: * `tsuru_login` – runs `tsuru login` if not authenticated or session expired; * `tsuru_not_command` – fixes wrong tsuru commands like `tsuru shell`; * `tmux` – fixes `tmux` commands; +* `unknown_command` – fixes hadoop hdfs-style "unknown command" for example adds missing '-' to the command on `hdfs dfs ls`; * `whois` – fixes `whois` command. Enabled by default only on specific platforms: diff --git a/tests/rules/test_hadoop_dfs_missing_dash.py b/tests/rules/test_unknown_command.py similarity index 95% rename from tests/rules/test_hadoop_dfs_missing_dash.py rename to tests/rules/test_unknown_command.py index d43216f9..a31c9d9c 100644 --- a/tests/rules/test_hadoop_dfs_missing_dash.py +++ b/tests/rules/test_unknown_command.py @@ -1,5 +1,5 @@ import pytest -from thefuck.rules.hadoop_dfs_missing_dash import match, get_new_command +from thefuck.rules.unknown_command import match, get_new_command from tests.utils import Command diff --git a/thefuck/rules/hadoop_dfs_missing_dash.py b/thefuck/rules/unknown_command.py similarity index 100% rename from thefuck/rules/hadoop_dfs_missing_dash.py rename to thefuck/rules/unknown_command.py