1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-19 04:21:14 +00:00

#N/A: Use for_app helper

This commit is contained in:
Vladimir Iakovlev 2016-08-13 16:14:05 +03:00
parent 065b350ada
commit 379d2953c9

View File

@ -1,9 +1,9 @@
from thefuck.utils import eager, get_closest
from thefuck.utils import eager, get_closest, for_app
@for_app('fab')
def match(command):
return (command.script_parts[0] == 'fab'
and 'Warning: Command(s) not found:' in command.stderr)
return 'Warning: Command(s) not found:' in command.stderr
# We need different behavior then in get_all_matched_commands.