mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-31 23:22:10 +00:00
#N/A: Use for_app helper
This commit is contained in:
@@ -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):
|
def match(command):
|
||||||
return (command.script_parts[0] == 'fab'
|
return 'Warning: Command(s) not found:' in command.stderr
|
||||||
and 'Warning: Command(s) not found:' in command.stderr)
|
|
||||||
|
|
||||||
|
|
||||||
# We need different behavior then in get_all_matched_commands.
|
# We need different behavior then in get_all_matched_commands.
|
||||||
|
|||||||
Reference in New Issue
Block a user