⚠️ Remove settings param from rules match, get_new_command and side_effect
This commit is contained in:
@@ -4,7 +4,7 @@ from thefuck.utils import replace_command, for_app
|
||||
|
||||
|
||||
@for_app('gulp')
|
||||
def match(command, script):
|
||||
def match(command):
|
||||
return 'is not in your gulpfile' in command.stdout
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ def get_gulp_tasks():
|
||||
for line in proc.stdout.readlines()]
|
||||
|
||||
|
||||
def get_new_command(command, script):
|
||||
def get_new_command(command):
|
||||
wrong_task = re.findall(r"Task '(\w+)' is not in your gulpfile",
|
||||
command.stdout)[0]
|
||||
return replace_command(command, wrong_task, get_gulp_tasks())
|
||||
|
||||
Reference in New Issue
Block a user