⚠️ Remove settings param from rules match, get_new_command and side_effect

This commit is contained in:
nvbn
2015-09-07 13:00:29 +03:00
parent 382eb8b86c
commit df4d2cc88d
154 changed files with 535 additions and 465 deletions
+2 -2
View File
@@ -63,7 +63,7 @@ def _brew_commands():
'doctor', 'create', 'edit']
def match(command, settings):
def match(command):
is_proper_command = ('brew' in command.script and
'Unknown command' in command.stderr)
@@ -74,7 +74,7 @@ def match(command, settings):
return False
def get_new_command(command, settings):
def get_new_command(command):
broken_cmd = re.findall(r'Error: Unknown command: ([a-z]+)',
command.stderr)[0]
return replace_command(command, broken_cmd, _brew_commands())