⚠️ Remove settings param from rules match, get_new_command and side_effect
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user