From 7318227825f59cfc7441e9b248b2178e1bb2256e Mon Sep 17 00:00:00 2001 From: gkodosis Date: Mon, 6 Jul 2020 14:31:36 +0300 Subject: [PATCH] Update rules based on devenv re-config --- thefuck/rules/goenv_no_such_command.py | 2 +- thefuck/rules/nodenv_no_such_command.py | 2 +- thefuck/rules/pyenv_no_such_command.py | 2 +- thefuck/rules/rbenv_no_such_command.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/thefuck/rules/goenv_no_such_command.py b/thefuck/rules/goenv_no_such_command.py index ec57a399..7e72cf74 100644 --- a/thefuck/rules/goenv_no_such_command.py +++ b/thefuck/rules/goenv_no_such_command.py @@ -19,5 +19,5 @@ def get_new_command(command): broken = re.findall(r"goenv: no such command '([^']*)'", command.output)[0] matched = [replace_argument(command.script, broken, common_typo) for common_typo in COMMON_TYPOS.get(broken, [])] - matched.extend(replace_command(command, broken, get_commands(command))) + matched.extend(replace_command(command, broken, get_commands())) return matched diff --git a/thefuck/rules/nodenv_no_such_command.py b/thefuck/rules/nodenv_no_such_command.py index d260a761..e60ad57e 100644 --- a/thefuck/rules/nodenv_no_such_command.py +++ b/thefuck/rules/nodenv_no_such_command.py @@ -19,5 +19,5 @@ def get_new_command(command): broken = re.findall(r"nodenv: no such command `([^']*)'", command.output)[0] matched = [replace_argument(command.script, broken, common_typo) for common_typo in COMMON_TYPOS.get(broken, [])] - matched.extend(replace_command(command, broken, get_commands(command))) + matched.extend(replace_command(command, broken, get_commands())) return matched diff --git a/thefuck/rules/pyenv_no_such_command.py b/thefuck/rules/pyenv_no_such_command.py index 9466b5ef..96c53f25 100644 --- a/thefuck/rules/pyenv_no_such_command.py +++ b/thefuck/rules/pyenv_no_such_command.py @@ -19,5 +19,5 @@ def get_new_command(command): broken = re.findall(r"pyenv: no such command `([^']*)'", command.output)[0] matched = [replace_argument(command.script, broken, common_typo) for common_typo in COMMON_TYPOS.get(broken, [])] - matched.extend(replace_command(command, broken, get_commands(command))) + matched.extend(replace_command(command, broken, get_commands())) return matched diff --git a/thefuck/rules/rbenv_no_such_command.py b/thefuck/rules/rbenv_no_such_command.py index 6481d7d4..ac82fdb4 100644 --- a/thefuck/rules/rbenv_no_such_command.py +++ b/thefuck/rules/rbenv_no_such_command.py @@ -19,5 +19,5 @@ def get_new_command(command): broken = re.findall(r"rbenv: no such command `([^']*)'", command.output)[0] matched = [replace_argument(command.script, broken, common_typo) for common_typo in COMMON_TYPOS.get(broken, [])] - matched.extend(replace_command(command, broken, get_commands(command))) + matched.extend(replace_command(command, broken, get_commands())) return matched