⚠️ 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
@@ -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())