⚠️ Remove settings param from rules match, get_new_command and side_effect
This commit is contained in:
@@ -2,9 +2,9 @@ from thefuck.utils import for_app
|
||||
|
||||
|
||||
@for_app('grep')
|
||||
def match(command, settings):
|
||||
def match(command):
|
||||
return 'is a directory' in command.stderr.lower()
|
||||
|
||||
|
||||
def get_new_command(command, settings):
|
||||
def get_new_command(command):
|
||||
return 'grep -r {}'.format(command.script[5:])
|
||||
|
||||
Reference in New Issue
Block a user